Most of them were captured in Afghanistan or Pakistan during the 2001 U.S.-led invasion to oust the Taleban .