Mediators have been pushing for a deal to end the U.S.-Iran war as both sides publicly exchange threats.