Just because everything is on the line does not mean it is okay to kill people. Please try to ask yourself what you would do if you were an ethical person who thought human extinction was imminent.
Oops, I misread the original context, to be clear I think that state-managed violence is okay for things around nukes and AI and so on. I was referring to individual acts of terrorism which seem not okay to me (in part because they seem not that likely to help).