If I'm in a public place and I hear gunfire, I'm moving my loved ones and myself to the safest place possible. Sorry, our laws don't permit me shooting a perp to save a stranger's life.
And this Patchwork of gun laws and reciprocity can be very confusing.
More confusing than the scenario in the OP.
In every state I'm familiar with, you may use deadly force to protect a third party from death or serious bodily injury. There is no clause about not protecting "strangers" vice people you know or family members.