Cops are usually extremely close to their partners. They take the responsibility of the other's life quite seriously. So if you want to even pretend to understand what happened, you have to imagine someone was attacking a friend/loved one with a hammer.
Personally, as you can no doubt tell, I think the cop was right to shoot the guy completely disassociated. But it's because I know what my reaction would be in the most extreme situation that I don't stand back and place judgement.
But what I imagine is a police force that is trained enough to know better than to approach a man with a hammer without adequate backup and preparation.
Thankfully I live somewhere where - despite high profile, dreadful, mistakes - that tends to be what police does. The high profile, dreadful mistakes are high profile because they are so exceedingly rare. This is why we get lists like this:
https://en.wikipedia.org/wiki/List_of_killings_by_law_enforc...
while still having lists like this:
https://en.wikipedia.org/wiki/List_of_British_police_officer...
The answer is to approach with the intent to isolate and de-escalate rather than with the intent to confront. British police are only armed in exceptional cases, and as a result they can't go in the way US police often do because they don't have someone ready to shoot the suspect at the drop of a pin. Instead they go in with more people. They get other people away if possible. They keep their distance if there's potential danger until they can approach the suspect cautiously, and ideally from multiple directions.
They don't walk up to someone wielding a hammer with only one person as backup.
There are of course exceptions where there are immediate dangers they must respond to, but they generally try very hard not to contribute to creating those dangers - whether for themselves or others.
Hell, if you assault someone in my family without a weapon you've forfeited your right to live.
I realize some may hold cops to a different standard, and I most certainly hold them to the same standard as I do anyone (and the recent spat of cops killing unarmed men or kids with toys on park benches have been atrocious) but this guy was out to murder a cop, so, boom you're dead.
I know others may have a different opinion, but don't imagine a stranger - imagine someone you know is being assaulted with a hammer. Would you not put the assailant down on the spot, even if you had police/military/marshal arts training?
I would.