Some types of leaders like to engineer (through inaction) attacks on their own country, because that will justify the type of situation they like to have. More or less: (a) you can't get rid of me! Look how dangerous things are (b) we have to keep killing them, they deserve it, look what they did.
I have no idea if Netanyahu's that way, or if the intelligence failures came just from the cloud of incompetence that for some reason tends to surround far-right leaders. But the first one definitely seems possible.
(Oh also sometimes (c) my friends who sell weapons are gonna get rich rich rich)