Pak minister heads to Iran amid mediation bid