Of course the only answer to this is to make it harder or impossible for law abiding people to get guns.
If it is obvious that street gangs are notoriously violent, then pass laws that make membership in those gangs a crime before they can get their hands on illegal guns.