Yes, because Hamas routinely does that to lure IDF soldiers.
Let’s use occams razor hear.
Option A - mistaken identity because the enemy wears no uniform, embeds itself in civilians, and uses inhumane tactics to confuse IDF soldiers (like putting explosives on dead bodies, placing speakers with hostages recording as bait)
Option B - IDF decided to kill the hostages they came to rescue for some evil reason