It's a sad event regardless of how or why. I was never a cop, but instructed with officers in our classes, and our company had a training contract with the police in Jordan for a year back around 2006. I've heard many stories and a lot of anguish over using lethal force vs civilians in tough call situations. My father who was an officer for 35 years lost his partner Neil Cunningham to a gunshot, and it changed him for the worse to this day, but not as badly as seeing a friend of mine during high school kill himself while in a confrontation with police. It's just an awful thing for everybody involved, officers, family, friends, victims, everyone.
Again, hindsight and the internet now ensures that all of us can put an oar in the water of somebody else's ocean, all of us can be guilty of it, typically the folks who decry others for being couch commandos or posting opinions are the first ones to do so themselves - something all of us have done on occasion I'm certain.