Not enough info. Why did they "have" to shoot him? Were they tired of waiting? If there was no one left to threaten what was the urgency that required deadly force?
This guy didn't take hints very well. Why didn't he put down the machete after the officer fired the first two shots? The police are trained to fire fire off two rounds at a time till the suspect is no longer a threat. The fact that he shot off ten rounds indictates 5 bursts of shots! An 18" machete is a rather long knife with considerable reach. If a suspect isn't complying with instructions and starts making threatening moves, why should the police officer have to wait while someone else gets into position with a taser or other weapon? What if a suspect had a knife that could be thrown? Failing to comply with the lawful orders of a law enforcement officer to put down a deadly weapon and then make threatening gestures is a good way to to end up dead.