Mediator Qatar said Israel and Hamas were at the “closest point” yet to sealing a deal that would bring them a step closer to ending the war.