U.S. officials say the only American soldier held prisoner in Afghanistan has been freed and is in U.S. custody.