Among the reasons he gives are the shortsighted support Washington extended , during the 1980s Soviet invasion of Afghanistan , to religious fundamentalists who later helped form the Taliban ; the United States ' role in the erosion of west Pakistan 's tribal system ; and its failure to recognize early on the scope of Islamic militancy along the border .