I thought that's generally the case.
"If the dog attacked the police, then it was doing it's job."
It was an illegal act on the dog's part, so they shot him.
What if the dog didn't know they were cops? Did the dog see the warrant?