The real problem is the law itself, and the policies of police forces in enforcing those laws.
When you have an armed gang invading a home in the middle of the night, bad things are a natural consequence. Did the cops murder that guy in Salt Lake? You might watch that video and think, "the guy raised what looked like a rifle and the cop defended his own life", or you might think, "what is a home owner supposed to do when his home is invaded by what he thinks are armed robbers?"
Both conclusions are correct. The problem can only be solved by less regulation, fewer laws, and adult implementation of law enforcement, i.e. no police force should do a no-knock armed entry into a home unless there is a life-threatening crime in progress.