I believe Israel’s Deep State purposely allowed this to take place, assuming it would just be another small raid. Their hope was that it would weaken Netanyahu. That Deep State was as surprised as anyone at the size and intensity of the breakout.
My perusal of history involving CIA activities leads me to believe that the vast majority of the time, they will screw things up.
They think they are so smart, and they are literally shocked when people don't behave the way they thought they would.
The CIA has a history of blunder after blunder and they never seem to learn. This what you get with Ivy league graduates. They aren't acquainted with the real world.
+