A former CIA officer has been arrested and charged with illegally retaining classified records.