If military action is the last action, then why did militant individuals likely affiliated with Hamas launch rockets into Israel again after the halt of air strikes during a visiting delegation from Egypt. Hamas doesn't want peace, and blood will be shed on both sides. War is to determine which foe is more resilient in the face of death and destruction, it is a necessary evil for a foe who will not negotiate, or cannot be reasoned with.
200 residents of Western Iraq held by ISIS (AP)
from the article: The ongoing failure of Israel's military thinking