Afterwards, police say the suspect exited the vehicle with a knife in hand and appeared to lunge towards the officers.
A photo taken by an Associated Press photographer showed officers surrounding a vehicle that appeared to have crashed into a barricade on the Capitol's north side.
The crash and shooting happened as Congress is on recess.
This ramming incident comes almost three months after insurrectionists stormed the Capitol as Congress was voting to certify Joe Biden's presidential win.
Speaking to MSNBC, and confirming some of the details of what took place, one Capitol Hill Police officer reportedly told the outlet: "We've been attacked".
One of the officers hit by the driver who rammed into a US Capitol barricade has died.
"Please join me in prayer for the two Capitol Police officers and their families", McCarthy tweeted.
The suspect was shot and died at a hospital, officials said.
Biden's dog bites another White House employee
In November, Biden slipped while playing with Major and injured his foot , necessitating the temporary use of a walking boot. Anonymous sources told CNN at the time that Major had been jumping, barking and charging at White House staff and security.
Fencing that prevented vehicular traffic near that area was recently removed as the Capitol has started to open up after the January 6 riots.
The officer who died Friday is the seventh Capitol Police member to die in the line of duty in the department's history.
Two law enforcement sources involved in the investigation told BBC partner CBS News that the suspect in the attack was 25-year-old Noah Greene from Indiana.
"What I'm told here is that the auto came in and after the auto, the blue Sedan rammed the Capitol police officers there, the suspect got out of a vehicle with a knife and that's when he was shot by the Capitol police officers", Fox News correspondent Chad Pergram reported, adding, "They do have National Guard troops there".
The officials say the suspect was critically wounded and was taken into custody.
Video posted online showed a blue sedan crashed against a vehicle barrier near the complex, and a police K9 inspecting the vehicle.
President Joe Biden had just departed the White House for Camp David when the attack occurred.
NBC News reporter Jake Sherman captured a video of a helicopter landing on the east front of the Capitol. All staff members were told they can not leave the building and were advised to stay away from windows. If outside, seek cover.