To be charged with a crime, you have to act intentionally or recklessly. I think the relevant law Texas law would be
PC § 9.05. RECKLESS INJURY OF INNOCENT THIRD PERSON. Even
though an actor is justified under this chapter in threatening or using force or deadly force against another, if in doing so he also recklessly injures or kills an innocent third person, the justification afforded by this chapter is unavailable in a prosecution for the reckless injury or killing of the innocent
third person.
Recklessness is somewhat in the eye of the beholder.
The shooter would also be liable to civil suits, though in the case of the typical gangbanger or criminal, there would be no assets to go after.
- Jim