No, the cop did something stupid (albeit illegal) and should be punished but not the entire law enforcement community like many comments have indicated.
No, he committed several illegal acts:
1) Entering the private citizen’s *back yard*, ergo intruding on her property.
2) Abusing the private citizen’s animal.
Neither of which fall under “stupidity”, and neither of which should be defended by someone who desires others to draw distinctions.