As I pointed out earlier, by voluntarily joining the military they entered into a contract in which they gave up some rights. Given that, your actions were just fine.
Had they been civilians, it would be different, of course.
No, no different at all.
Either you back right to die, or you don’t.
Make up your mind.