US officials are urging Israel and Hamas to agree on a deal for a truce in the Gaza Strip and the release of hostages within the next two weeks.