It is the duty of the SWAT team, while taking care to the utmost practical, of taking out this gunman. Yes, another innocent may be wounded or killed, but that would be acceptable collateral damage to prevent all the other innocents being fired at by the gunman.