I believe the office approached the dog to get a hold of the leash that was still attached. Given that I think the office made an honest attempted to diffuse the situation by getting the leash and possibly leading the dog away or back to the car. The dog saw this as an aggressive gesture on the officers part and reacted as most dogs of this breed would. I see no fault on the officer or the dog. As others have stated the owner is a tool.