‘Pakistan confronting extremism, external threats from two sides’