Much as I hate to say it, because I dislike condoning any sides actions, Sandwich is right.
This isn't just a racial situation, it isn't just a religious situation, it's a political situation, you can be certain the Jewish people will only put up with so much before they start asking 'Why did we vote in these leaders who do nothing to protect us?'
By attacking Israel, Hamas force a response, they know this, it's what they are hoping for, because the more they can be viewed as persecuted, the more sympathy they get from surrounding nations.
Hamas know they couldn't last long if Israel really let loose, but Israel know that they have enemies on all sides, it's a very difficult equation to balance, but you can be assured that what Hamas want to happen is for lots of innocents to die for their cause, so that they can appeal to outside nations for help, that, to my mind, is what this provocation is all about.
I don't agree with what is going on in Gaza with regards to the blockade, but then, I think of all the responses possible, Hamas have deliberately picked the one most destructive to their own people, and I find that prety appalling, since it suggests to me that this is more about what Hamas want than what the Palestinian people(and, quite frankly, the entire area) need.
Israel is hardly Super Happy Fun Ball, and you definitely don't want to taunt it.