Pakistan 's government has been fighting a Taliban insurgency in the northwest .