A lot of truth in that story!
When in early April Mahmoud Abbas revealed how he had talked tough to the head of Israeli Intelligence in one of their regular meetings I dismissed his comments on the Palestinian Elections thread as electioneering - which it was. However, there was one thing which rang true: it's said that he shouted at the head of Shin Bet, "Don't talk to me about Hamas - you created them!" This echoed the words of Yasser Arafat who frequently referred to Hamas as “a creature of Israel.”
To understand what they mean you have to go back to the early 1980s when Israel helped to finance the Palestinian Islamist movement as a “counterweight” to the secularists and leftists of the PLO and the Fatah party, led by Arafat - a classic manoeuvre to divide and rule. That movement eventually became Hamas. However, to say that Israel created Hamas is an exaggeration - the movement would have coalesced into a party eventually, but Israel's contribution undoubtedly hastened it..
More recently, in 2019, Qatar, the country that provides the majority of the funding that enables the Hamas government to function - civil service etc - as well as money towards humanitarian relief, threatened to stop payments completely because it discovered huge sums of money were being 'misused' - corruption and weapons. Israel found out and persuaded the Qataris to continue and even increase their payments, which they did, thus propping up their disastrous government.
In return Israel were able to broker an unofficial 'period of quiet' with Hamas, which lasted right through to April when around 45 rockets were fired from Gaza.
It would be nice to think humanitarian concerns played a part in Israel's intervention, and probably they did partially, but the more immediate concern for Netanyahu was a desire to avoid the possibility of any escalation caused by the collapse of a functioning government, which would have led to chaos and an almost certain upsurge in violence.