A ceasefire agreement between Israel and Hamas is in jeopardy due to last-minute demands from Hamas, with mediators working to finalize the deal.