Many militants poured into the northwest tribal areas from across the border in Afghanistan when the United States invaded after 9 / 11 , and much of the region is now effectively outside the Pakistani government 's control .