That seems to be the tactic of Hamas. I say accommodate them. Kill every man, woman and child In Gaza. Mothers encourage their sons to martyr themselves and the children are so indoctrinated with hate, recovery is not possible.
Thane Rosenbaum puts it better.
Let's state the obvious: No one likes to see dead children. Well, that's not completely true: Hamas does. They would prefer those children to be Jewish, but there is greater value to them if they are Palestinian. Outmatched by Israel's military, handicapped by rocket launchers with the steady hands of Barney Fife, Hamas is playing the long game of moral revulsion.
The people of Gaza overwhelmingly elected Hamas, a terrorist outfit dedicated to the destruction of Israel, as their designated representatives. Almost instantly Hamas began stockpiling weapons and using them against a more powerful foe with a solid track record of retaliation.
What did Gazans think was going to happen? Surely they must have understood on election night that their lives would now be suspended in a state of utter chaos. Life expectancy would be miserably low; children would be without a future. Staying alive would be a challenge, if staying alive even mattered anymore.
To make matters worse, Gazans sheltered terrorists and their weapons in their homes, right beside ottoman sofas and dirty diapers. When Israel warned them of impending attacks, the inhabitants defiantly refused to leave.
On some basic level, you forfeit your right to be called civilians when you freely elect members of a terrorist organization as statesmen, invite them to dinner with blood on their hands and allow them to set up shop in your living room as their base of operations. At that point you begin to look a lot more like conscripted soldiers than innocent civilians. And you have wittingly made yourself targets.