In the science fiction I'm writing a young special forces officer has to defend himself from a enemy that had planned to stab him in back while the officer was praying inside a masque. Would it be legal for the officer to kill the 666 member with his sheathed knife or holstered pistol?