Israel and Hamas agreed to a cease-fire