US officials have met Pakistani PM Shehbaz Sharif in Islamabad ahead of possible talks with Iran.