Pakistan's diplomatic efforts averted war in Mideast: PM Imran