Training dogs to guard people and objects