The Israeli prime minister is conducting a two-front war, one against Hamas and the other for his own political survival.