The Arab uprisings that have for more than two years roiled the Middle East and North Africa must by now bring a sense of disquiet to Hamas, the Palestinian group that holds up "resistance"—often with terrorist tactics—against Israel.