There's a lot of misinformation evident in your post .
For one- Hamas ceased attacking Israel directly some time ago as a matter of policy. Hamas now responds only when it is attacked but the Western press only reports the Hamas response and not the Israeli aggression. This gives precisely the wrong account of events that the Israelis want. Unsurprisingly, many of the Western media outlets are owned by billionaire supporters of Zionism. So the best way for the Zionists to have Hamas condemned is for the Zionists to attack Hamas. Which they frequently do.
Secondly, Gaza is utterly impoverished- due to Israelis' illegal attacks and the Israeli illegal blockade- and Gazans have to adapt to poverty and earn a living. One way that some do this is to fire rockettes into Israel which have been commisioned by families which have had a relative of friend murdered by the Israelis. For a sum of money or a promised favour the guerrilla brigades - not Hamas- will fire into Israel. Of course we all know that these rockettes are relatively harmless. They are inaccurate and carry no warhead. Very few Israelis have been killed or injured by them. Also, the main target for the rockettes is the nearby settlement known as Sderot. Sderot is actually the Palestinian village of Nadj- from which the Zionists drove the indigenous Palestinian people in the early 1950s. The Palestinians are actually firing at the illegal occupants of their own Palestinian homes.
https://en.wikipedia.org/wiki/Sderot
Lastly, Gaza is the most densely populated region on earth. To say that the rockette brigades deliberately site their launchers near hospitals and schools is a nonsense. It is the Israelis who deliberately target such buildings as a form of- illegal- collective punishment of Palestinians. They also target other aspects of Palestinian civilisation, such as water plants and generators. They started their ' Cast Lead ' offensive by murdering a square full of Palestinian police cadets on parade. Such attacks are part of the neoZionist ethnic cleansing policy.
It is wholly inaccurate to blame the Palestinians for any aspect of the invasion of their own country. You would not be blamed for resisting invasion of yours- except by the invaders.