The only American soldier held prisoner in Afghanistan has been freed from Taliban captivity in exchange for the release of five Afghan detainees from the U.S. prison at Guantanamo Bay, Cuba, Obama administration officials said Saturday.