This is running an operation in a controlled situation in an area where they already have security control/cooperation. This is three terrorists. Hamas in Gaza is in the 10s of thousands, with a tunnel network, boobytraps, and decades of preparation. It’s out of touch with reality to suggest that they are equivalent.
A better question if you ask me is that if they could carry out this operation, why couldn’t they capture them and bring them to trial?