An ex-CIA agent pleaded not guilty Friday to illegally leaking classified documents about agency programs in Iran to a New York Times reporter.