Very sad all around. It’s entirely likely the police didn’t announce themselves, in which case the resident was entirely right in firing on them. Unfortunately, it’s nearly impossible to successfully use self defense against a policeman because society is so engrained in the worship of the police culture to where a LEO can do almost anything with impunity but heaven help anyone who acts to defend themselves against a rogue cop.
There are way too many “undercover”, Plainclothed” or Swat uniformed officers going around acting like they are part of a military invasion force. Police officers should have clearly marked UNIFORMS.