Israel agrees to extend Gaza ceasefire: Official