Visit comes as Pakistan continues mediation efforts and Iran declares it is in a "full-scale war" with the US.