Teaching dogs to guard people or objects