Netanyahu encouraged the Hamas regime in Gaza, including permitting the transfer of finance from Qatar, so as to ensure a united Palestinian politicsl organisation between Gaza and the West Bank would not come into being.
https://www.timesofisrael.com/mossad-chief-top-general-visited-qatar-begged-it-to-pay-hamas-liberman-says/
It's as if he was happy to risk a major attack, knowing it would give him the excuse he needed to unleash armageddon.