Resisting tyranny is a virtue.
Killing tyrants is not an illegal act.
You do have to be certain they are acting tyrannical, however. Like they are doing illegal, tyrannical acts and attempting to use their power and government force to enact their tyrannical goals.