Pakistan PM Nawaz Sharif urges dialogue with militants