The Israeli military said troops “mistakenly identified three Israeli hostages as a threat” and fired at them, killing the three hostages.