Pakistan 's military has been fighting Taliban militants throughout the country 's northwest for more than two months .