Before that, security officers spent several hours trying to convince him to surrender.
FBI agents opened fire on an armed man at the entrance to the CIA headquarters after a standoff that lasted several hours, the federal agency said.
An unidentified man drove up to the first gate of the sprawling CIA compound outside Washington on Monday afternoon but was not allowed to enter.
Security officials spent several hours negotiating with him, persuading him to surrender.
The FBI said in a statement that the man “got out of his car with a gun,” after that law enforcement officers used weapons.
“The subject was injured and taken to a hospital for medical treatment,” the statement said.
In 1993, Mir Aimal Kansi, a Pakistani, shot and killed two CIA officers and wounded three others as they sat in a car waiting for a traffic light to enter the compound.