GOP Majority Whip Steve Scalise. Official Portrait

A top Republican congressman was among several people shot Wednesday by a rifle-wielding gunman at a congressional baseball practice in Alexandria, Virginia.

GOP Majority Whip Steve Scalise was among several who were reportedly hit, including two officers with the Capitol Police.

The police have one suspect in custody. Witnesses described the shooter as a man armed with a rifle and scope.

The investigation is now with the FBI.

Tim Slater, the FBI special agent in charge of the investigation at a press briefing that said it was "too early to tell if they were targeted or not."

Scalise's office said in a statement that the congressman is in stable condition at MedStar Washington Hospital. He was shot in the hip and is undergoing surgery, the statement said.

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

Rep. Roger Williams, who was at the baseball practice, said a member of his staff was shot and is receiving medical attention. A female Capitol Police officer is also reportedly being treated at Washington's MedStar hospital.

George Washington University Hospital confirmed that it received two patients from the shooting, both in critical condition.

Rep. Mo Brooks, who was also at the baseball practice, said on CNN that Scalise was shot in the hip.

"He had crawled into the outfield, leaving a trail of blood," Brooks said.

President Trump said he was "deeply saddened" by the incident.

"The vice president and I are aware of the shooting incident in Virginia and are monitoring developments closely. We are deeply saddened by this tragedy. Our thoughts and prayers are with the members of Congress, their staffs, Capitol Police, first responders, and all others affected," Trump said.

A police officer mans a shooting scene after a gunman opened fire on Republican members of Congress during a baseball practice near Washington in Alexandria, Virginia, June 14, 2017. REUTERS/Joshua Roberts

Brooks told CNN the shooter was trying to take out the congressional security detail before "getting to the rest of us."

Here's an image of Scalise being loaded on to an ambulance after being shot:

It appeared the shooting was not random. Brooks said on CNN, "It sure as heck wasn't an accident."

Rep. Ron DeSantis told Fox News a person had earlier been asking whether the practicing members of Congress were Republicans or Democrats, though it was unclear whether that person was the shooter.

Emergency personnel are seen through a window with a bullet hole in Alexandria, Virginia, Wednesday, June 14, 2017. Joseph Miscavige via AP

At least one member of Congress credited Scalise's presence at the practice with saving other people's lives. Sen. Rand Paul said on MSNBC that Scalise's position as the House majority whip — a member of leadership — was the reason police officers were present.

"Had they not been there, it would have been a massacre," Paul said.