(USA TODAY) -- A gunman opened fire on a Republican congressional baseball team practicing on a suburban Virginia field Wednesday, critically wounding Louisiana Rep. Steve Scalise and shooting four other people as horrified legislators and staffers scrambled for cover amid a barrage of bullets.

Capitol Police, who provided security for the practice, engaged the shooter, identified by a law enforcement official who spoke on condition of anonymity as James Hodgkinson, 66, from Belleville, Ill. President Trump later said the suspect was killed in the ensuing shootout.

Congressional aide Zachary Barth, Tyson Foods lobbyist Matt Mika, and Capitol Police special agents Crystal Griner and David Bailey also were wounded in the rampage. The agents were hailed as heroes.

"Many lives would have been lost if not for the heroic actions of the two Capitol Police officers who took down the gunman despite sustaining gunshot wounds during a very, very brutal assault," Trump said. "Melania and I are grateful for their heroism and praying for the swift recovery of all victims."

Rep. Chuck Fleischmann, R-Tenn., said the baseball practice session was almost over when the rampage began on the field shortly after 7 a.m.

“I heard a bang, and I thought it sounded like a gun. I never saw a shooter," Fleischmann said. "I got bloody running and jumping into the dugout.”

Fleischmann estimated 50 to 60 people attended the practice, including House members, senators and their staff. “A lot like me got bloody running for cover,” he said.

“It is just a madhouse here,” Fleischmann said. “It’s horrible. I’ve never experienced anything like that.”

South Carolina Rep. Jeff Duncan said he was leaving practice early when the man he believes was the gunman asked him if the players were Democrats or Republicans.

"I told him they were Republicans, he said 'OK, thanks,' and turned around," Duncan told reporters. "I got in the car and left."

Minutes later he heard about the rampage, which drew outrage from lawmakers on both sides of the aisle. Sen. Bernie Sanders issued a statement saying the suspect apparently had volunteered on his presidential campaign. Sanders said he was "sickened by this despicable act."

"Let me be as clear as I can be. Violence of any kind is unacceptable in our society and I condemn this action in the strongest possible terms," Sanders said. "Real change can only come about through nonviolent action, and anything else runs against our most deeply held American values."

Pennsylvania Rep. Patrick Meehan said he had been throwing friendly shade on Ohio Democrat Tim Ryan since striking him out on a curveball last year. "He just came up and gave me a hug," Meehan said.

Scalise, the third-ranking GOP whip in the House, was shot in the hip and listed in critical condition at MedStar Washington Hospital Center.

"Prior to entering surgery, the Whip was in good spirits and spoke to his wife by phone," his office said in a statement. "He is grateful for the brave actions of U.S. Capitol Police, first responders, and colleagues."

President Trump tweeted: "Rep. Steve Scalise of Louisiana, a true friend and patriot, was badly injured but will fully recover. Our thoughts and prayers are with him."

Rep. Roger Williams, R-Texas, said staffer Zach Barth was among the wounded and was in stable condition. U.S. Capitol Police Chief Matthew Verderosa said the wounded officers were in good condition. Mika was shot several times and was hospitalized in critical condition, his family said in a statement.

Tim Slater, an FBI special agent in charge of the investigation, said it was too early to say if the shooter was targeting Republicans. Hodgkinson, however, had a history of raging against President Trump and other Republicans and once singled out Scalise.

"Here's a Republican that should lose his job, but they gave him a raise,'' Hodgkinson allegedly wrote in a 2015 post to his Facebook account. The message was accompanied by a cartoon depiction of Scalise.

In a March 22 Facebook post, Hodgkinson described Trump as a "traitor.''

"Trump Has Destroyed Our Democracy,'' he said. "It's Time to Destroy Trump & Co."

The team of Republican congressman and staff members were practicing for a charity baseball game scheduled for Thursday against a Democratic team. Rep. Jared Huffman, D-Calif., said his team was practicing elsewhere when they heard about the attack.

"We're safe & with police, everyone praying for GOP colleagues, staff & Cap police," Huffman tweeted.

The shooting took place at Eugene Simpson Stadium Park, in the Del Ray section of Alexandria about seven miles from the Capitol. It's a quiet community made up of restaurants, small businesses and lots of families. Residents describe it as a safe neighborhood where people walk around outside until late at night. The field serves as a community hub, with games and activities at all hours.

The special agents were providing security at the practice and quickly returned fire when the shooting began, Verderosa said. Alexandria Chief Michael Brown said his officers arrived three minutes after the first emergency call came in at 7:09 a.m. ET, and also joined the gunfight.

Sen. Rand Paul said he was "shaken but unharmed" after the rampage.

"Many people likely would have died this morning if not for the bravery of the Capitol Police," Paul said. "My thanks to them are inadequate but heartfelt. They never hesitated to put their lives on the line to save everyone."

Rep. Mo Brooks, R-Ala., told CNN people scattered when the shooting began. Scalise was standing in the infield and fell where he stood.

"He was not able to move under his own power. He was dragging his body from second base," Brooks said. "There was not a whole lot we could do."

"It's not easy when you see people around you being shot and you don't have a weapon yourself," Brooks said. "You feel helpless."

Contributing: Michael Collins, Deborah Berry, Susan Miller, Eliza Collins, Heidi Przybyla