Mediator Pakistan said the US and Iran agreed to a peace deal and an “immediate and permanent” end to military operations on all fronts, including Lebanon.