Israeli army officials say the militant was carrying a weapon when he was shot .