There are celebrations in the occupied Palestinian territories and in Israel after a ceasefire deal.