The key here is whether the officer (let's not use derogatory terms, most do their jobs very well) identified himself before shooting. If not, the cop is in trouble.
It's certainly understandable why a cop in pursuit of a perp might be on edge, filled with adrenaline, but being able to keep...