The explosions happened on a day when Israel was already grieving after Hamas returned the bodies of four hostages from Gaza.