I simply don't believe that this was a surprise attack. The Israeli intelligence knows everything happening inside of Gaza. Maybe they 'wanted/accepted' this attack to have a reason to turn Gaza into a ruin.
It's obvious.