Israel and Hamas are closing in on an internationally brokered deal to pause fighting and free some of the roughly 240 hostages taken by the militant group, officials close to the talks said, amid heightened scrutiny of the civilian toll of Israel’s invasion of Gaza.