There are a billion factors contributing to this kinda behaviour:
Gangs, guns, drugs, lack of respect/sensitivity, poverty, open immigration, lack of/terrible role models, stupidity, fads, racism from both sides, parental neglect/absence, misconceptions, environmental influences, murky perspective, lax justice system, inexperience, family breakdown, television/movies/music/books, fear, greed, need, desparation, segregration, integration, hate with/without reason, class divide, etc. etc. etc.
Bascially EVERYTHING is a reason, and all of these reasons can be dealt with using left-wing socialist ideas and programs, whose main purpose is to be proactive and prevent them from happening beforehand. And that's a good thing.
But for those fuckers who've passed the line, basically cannot be rehabilitated, so they deserve nothing less than punishment/vengeance. But we can't have the law of the streets where we sit back and let them kill each other off, cuz that only results in bystander fatalities. We gotta put fear in their mind by doing whatever it takes to make them think twice about firing a gun.
(I wonder which as elicited more anger, this gunfight or 911)