Or it might find that it wasn't and might take the action that it deems will best rectify the matter. There is no law that says you can never kill or harm somebody else. And there is no law that gives anybody any right to kill or harm anybody else. The principal law concerns the balance between the freedom to choose one's own actions and the impermissibility of violating anybody else's freedom to choose. Harming or killing somebody else is a major imposition against their ability to choose.
Nobody has any inherent authority to do that.
However, if that action is deemed to be in defense of or in deterrence of a major threat to somebody's right to live, that might indeed be found to have been the appropriate action. In other words, there are no prewritten rules about what specific actions you can or cannot do, or what specifically the punishment would be if you did. But, as part of that, there are no legal technicalities one can use to hide behind if one did something reprehensible. You will have to answer for your actions, no matter if you are a public official, and no matter what rule book you acted out of. HoloWorld is largely a lively, but friendly place.