The surprise attack shattered a period of relative calm during Ramadan and raised the prospect of a full return to fighting in the 17-month war.