Ex-CIA officer details agency's role in keeping U.S. safe