I don’t know.
A lot has not been shown/disclosed.
More info I guess it turns out that the armed student was the one who was killed(By I assume the cop that was already on scene) and there was someone else who was detained..my guess the whole thing was gang related