Pakistan gets a grip on a region known as a nexus of terror — but residents pay a price for peace