The man had a mental illness, and a lot of the people in the neighborhood new him and were aware that he was not dangerous.
If the police department imported less people from outside out of town, and had more focus on community policing, where officers are integrated into the community and grew up in the area, and knew what was going on and who is who, things like these would happen less. A lot of the neighbors had nothing but good things to say about the man killed, and they knew he had a mental illness. Unfortunately a lot of programs like veterans preference for example, have a negative effect like that, a lot of people who didn't grown up in majority black areas end up policing majority black areas.
Also, the time between the police officer's arrival and their call for an ambulance was literally under 30 seconds. They showed up, did not attempt any meaningful ways of de escalation, which would have made it obvious that his "gun" was a pipe, and shot the man dead, before handcuffing it.
You guys need to look at the macro instead of the micro approach of "he was waving something that could have been a gun, so he deserved it." There are ways to make situations like these less fatal statistically. Just because someone can be misperceived as a threat does not mean any violent reaction is justified by the men and women whose hob should be assessing and deescalating difficult situations with minium casualties.