U.S. Capitol Police officers David Bailey and Crystal Griner were identified by House Speaker Paul Ryan as the two special agents injured in the shooting at a congressional baseball practice in Alexandria, Virginia.
Interested in Congressman Shot?Add Congressman Shot as an interest to stay up to date on the latest Congressman Shot news, video, and analysis from ABC News.
Bailey and Griner were protecting House Majority Whip Steve Scalise, currently the third-highest Republican in the House. Nine other members of Congress have protective details because of their positions. Special Agent Henry Cabrera was also protecting Scalise but was not injured in the shooting.
"I want to commend Special Agents Crystal Griner, David Bailey and Henry Cabrera for their heroic and appropriate response in protecting the members and others today," said Capitol Police Chief Matthew Verderosa.
According to Verderosa, Griner was shot in the ankle and is in good condition in a hospital. Bailey sustained a minor injury, was treated and has been released.
Congressional staffer Zack Barth, who was shot, has also been released from a hospital, according to a family spokesperson. Scalise and lobbyist Matt Mika remain in critical condition, according to MedStar Washington and a statement from Mika's family.
Ryan said he spoke with both special agents Wednesday morning.
"One was being treated, and one was about to go into surgery," he said. "I expressed our profound gratitude to them."
"It is clear to me, based on various eyewitness accounts, that without these two heroes, Agent Bailey and Agent Griner, many lives would have been lost," said Ryan, who got a standing ovation in the House chamber.
The Capitol Police occasionally assigns an officer to attend baseball practices, on a case-by-case basis.
"There's usually a Capitol Police officer in a car in a parking lot several hundred yards away but no one on near the field like the Scalise detail was," said Matt Dinkel, the spokesman for Rep. Mike Doyle, the Democratic team's coach. "That was the situation today."
"The United States Capitol Police is dedicated to its mission to protect the U.S. Capitol, members of Congress, staff and the visiting public," said Verderosa, "today we saw how our officers' extensive training and quick response saved lives."
At a press conference Wednesday afternoon, Rep. Roger Williams, R-Texas, choked up while crediting Griner and Bailey for preventing the deaths of the 25 elected officials on the field and the 15 staffers who joined them.
"There will be those who talk about what's wrong with America, but in this case, Officers Griner and Bailey, we saw what's right with America," Williams said. "We saw two people risk their lives to save the lives of others. We saw courage in the face of death, and we saw examples of why all Americans should be grateful every day for law enforcement officers around this country."
Griner and Bailey were widely praised for their role in preventing a massacre on the baseball field today.
Praying for those injured at this morning's practice. I'm especially thankful to the US Capitol Police who risked their lived to protect us.— Mo Brooks (@RepMoBrooks) June 14, 2017
Always so grateful for the US Capitol Police officers. Their bravery saved lives in VA this morning. Thank you.— Chuck Schumer (@SenSchumer) June 14, 2017
"Many lives would have been lost if not for the heroic actions of the two Capitol Police officers who took down the gunman." -@POTUS— Vice President Pence (@VP) June 14, 2017
If you're around the Capitol, please thank the dedicated men and women of the @CapitolPolice. They always deserve it, but especially today.— Raja Krishnamoorthi (@CongressmanRaja) June 14, 2017
Capitol Police deserve gratitude for heroism; stops shooter of GOP Congressmen in VA; thank God for sacrifice of law enforcement.— Gov. Mike Huckabee (@GovMikeHuckabee) June 14, 2017
ABC News' Ali Rogin, John Parkinson and Mary Bruce contributed to this report.