The Pakistani ISI and Taliban are intermingled with each other heavily IIRC, and defeating the Taliban is not going to be easy without some across the border housecleaning.