The soldier acted "in severe violation of his authority" and his weapon had been confiscated, the military said.