This have happens many time, the "trend" has actually even a name called "Suicide by Cop" - Which basically means to provoke the police officer till the officer draws his weapon and shot.
The guy couldn't take his own life, so he took help from the police officer.
Suicide / killing is always tragic, sadly another life was lost that day.