Teaching dogs to guard people from harm