Yesterday's terrorist attack in Pakistan shocked the world, but we shouldn't be surprised, says William Dalrymple. A volatile mix of US-led military action in the tribal areas and the government's misguided fostering of jihadi groups threatens the stability of the entire region