Teaching dogs to guard a person or object