Afghan officials have released an American imprisoned in 2004 for running a private jail .