Only in a morally twisted world, the victim and the defender is asked to protect its civilians instead of the merciless aggressor!
There's actually a whole of of facts that go missing, distorted or covered-up in the Western pro-Israeli narrative of the Arab Israeli conflict which would be pages and pages to cover in this post. But here's an article covering important facts of Zionist foundational illegitimacy and persistent criminality that you hardly hear from western mainstream media. So before having any opinion on the situation you need to revise your pro-Israeli narrative of the event for a fair and accurate one.
But as for this particular situation, the fact is that Hamas is a democratically elected government (elected by very those who you describe as 'human shields') that represents the aspirations of the Palestinians and many other people around the world 1 for liberation of Palestine and the right to return for the dispossessed and expelled Palestinians which amount to hundreds of thousands.
To quote a critique of the western narrative of Gaza-Israeli conflict from Chomsky:
New York Times correspondent Stephen Erlanger reports that Israeli
human rights groups are "troubled by Israel's strikes on buildings
they believe should be classified as civilian, like the parliament,
police stations and the presidential palace" - and, we may add,
villages, homes, densely populated refugee camps, water and sewage
systems, hospitals, schools and universities, mosques, UN relief
facilities, ambulances, and indeed anything that might relieve the
pain of the unworthy victims. A senior Israeli intelligence officer
explained that the IDF attacked "both aspects of Hamas -- its
resistance or military wing and its dawa, or social wing," the latter
a euphemism for the civilian society. "He argued that Hamas was all of
a piece," Erlanger continues, "and in a war, its instruments of
political and social control were as legitimate a target as its rocket
caches." Erlanger and his editors add no comment about the open
advocacy, and practice, of massive terrorism targeting civilians,
though correspondents and columnists signal their tolerance or even
explicit advocacy of such crimes, as noted. But keeping to the norm,
Erlanger does not fail to stress that unlike US-Israeli actions, Hamas
rocketing is "an obvious violation of the principle of discrimination
and fits the classic definition of terrorism." 8
Like others familiar with the region, Middle East specialist Fawwaz
Gerges observes that "What Israeli officials and their American allies
do not appreciate is that Hamas is not merely an armed militia but a
social movement with a large popular base that is deeply entrenched in
society." Hence when they carry out their plans to destroy Hamas's
"social wing," they are aiming to destroy Palestinian society. 9
So the fair and accurate way of defining the recent conflict in the greater historical context is to define it as one of a last holdout of a displaced, oppressed, murdered and ethnically cleansed indigenous population facing the ruthless military attacks, from all directions, of an occupational entity financed and supported by the most advanced military equipments of the world super power, against a small, densely packed civilian population which has learned since long ago that they should tie no hope virtually to anyone in the institutions of power for liberation of their land and their lives from the hands of Israeli terrorist occupation, except leaders from amongst their own people.
Therefore Hamas that is branded as a terrorist organization by almost all pro-Israeli western governments is regarded as a courageous freedom movement by thousands of people familiar with the true historical facts of the conflict which is resisting yet another all out onslaught of the best funded and best equipped military in the region against a besieged territory that has barely any accesses to basic life necessities and relies on comparably ridiculous weapons in terms of destruction power to retaliate and deter the brutal aggression.
Therefore to answer your question in the light of this crucial historical context, the severe total siege against Gaza that is in place now for almost a decade disables Hamas from building effective shelters for a 1.8 million population trapped in a small area of land against relentless Israelis attacks that come from all directions. So it is unwise to expect Hamas which is just a popular resistance by an impoverished people against the 4th largest world military power to protect the civilians against relentless rain of death and destruction by the Zionist army, navy and air force!
So you really need to stop taking the western mainstream narrative of the conflict as the fair and truthful narrative of the events and turn to alternative media for unbiased information, those media that are not owned and influenced by a handful of mega corporations and their crude material interests.
Examples of worldwide rallies in condemnation of Israeli killing spree in Gaza and support for liberation of Palestine: 1, 2