The worst possible conspiracy is current gov wants to stay in power and show the pink front "this is what happens if you distract us with your protests". If so I hope they burn in hell for additional eternity. But it's also a naive take. Charitably they literally had hands full I guess.
I'm not saying this attack by Hamas was allowed to happen (in fact, unless some evidence comes to light, the default assumption should be there was no conspiracy), but "I don't think the gov would sacrifice people" [4] is not a sure thing. It's probable, but not nearly certain.
[1] https://www.smithsonianmag.com/smart-news/nixon-prolonged-vi...
[2] https://en.wikipedia.org/wiki/Lavon_Affair
[3] Citing Ennes's book, Lenczowski notes: Liberty's personnel received firm orders not to say anything to anybody about the attack, and the naval inquiry was conducted in such a way as to earn it the name of "coverup". - https://en.wikipedia.org/wiki/USS_Liberty_incident
[4] I deliberately cut your sentence short. Their goal could be different from just tarring Hamas. Such as swaying local elections, or increasing US military aid, sorry, cooperation [5], with Israel.
[5] If this Capitol crumbled to the ground, the one thing that would remain would be our commitment to our aid, I don’t even call it our aid, our cooperation with Israel. - Nancy Pelosi, Israel-American Council Conference, https://www.youtube.com/watch?v=U1LmnQRnw8I
Bring the peacnik hippies in line while at the same time letting Hamas show what a sick organization they are.
I do not think for a second Shin Bet didn't know something was going to happen before it happened. The question is to what extent.