ALEXANDRIA, Va. — A rifle-wielding attacker opened fire on Republican lawmakers at a congressional baseball practice Wednesday, wounding House GOP Whip Steve Scalise of Louisiana and several others as congressmen and aides dove for cover. The assailant, prepared with “a lot of ammo,” fought a gun battle with police before he, too, was shot and later died.

Colleagues said Scalise dragged himself away from the infield leaving a trail of blood as they rushed to his assistance. He was taken to a hospital where he underwent surgery and was listed in critical condition. His office said that before surgery for a wound in his hip he was in good spirits and spoke with his wife by telephone.

The shooter was identified as James T. Hodgkinson, a 66-year-old home inspector from downstate Belleville, who had several minor run-ins with the law in recent years and belonged to a Facebook group called “Terminate the Republican Party.”

“I know he wasn’t happy with the way things were going, the election results and stuff,” his brother Michael Hodgkinson told The New York Times.

Congresswoman Claudia Tenney received a threatening email shortly after a man opened fire on members of Congress and others on a baseball field.

The subject line read, “One down, 216 to go …”

The New York Republican’s spokeswoman, Hannah Andrews, said her office alerted Capitol Police.

There are 238 Republicans in the House, but 217 voted for a bill that would repeal and replace President Barack Obama’s health law. It was unclear whether the email writer was referring to that vote.

Shortly after the shooting, Bernie Sanders, the former candidate for the Democratic presidential nomination, said on the Senate floor that the shooter apparently was a volunteer for his campaign last year. Sanders said he denounced the violence “in the strongest possible terms.”

Capitol Police officers who were in Scalise’s security detail wounded the shooter, who was taken into custody. The attacker later died of his injuries, President Donald Trump told the nation from the White House.

Scalise, 51, the No. 3 House Republican leader, was first elected to the House in 2008. The popular and gregarious lawmaker is known for his love of baseball and handed out commemorative bats when he secured the No. 3 job of House whip several years ago.

Texas Rep. Roger Williams said that one of his aides, Zack Barth, was shot, but “is doing well and is expected to make a full recovery.” Two Capitol Police officers were also injured but were expected to recover, along with a former congressional aide who was hospitalized.

Gallery

David Axelrod, a former Obama administration official, tweeted “The targeting of members of Congress, regardless of party, is an assault on our democracy. A terrible day.”

Awful news about shooting in VA targeting @GOP members of Congress and Capitol police. — David Axelrod (@davidaxelrod) June 14, 2017

Saddened to read political responses among expressions of thoughts and prayers. Can we please hit pause on that for now? https://t.co/dIQQcSlqNy — David Axelrod (@davidaxelrod) June 14, 2017

The targeting of members of Congress, regardless of party, is an assault on our democracy. A terrible day. — David Axelrod (@davidaxelrod) June 14, 2017

We should lock arms as Americans against fanaticism, from the Left or Right, that seeks to justify violence against public officials. — David Axelrod (@davidaxelrod) June 14, 2017

Rep. Jeff Duncan of South Carolina said he had just left the practice and encountered the apparent gunman in the parking lot before the shooting. The man calmly asked which party’s lawmakers were practicing and Duncan told him they were the Republicans. The man thanked him.

The gunman had a rifle and “a lot of ammo,” said Sen. Jeff Flake of Arizona, who was at the practice.

The shocking event left the Capitol horrified and stunned. The House canceled proceedings for the day.

The shooting occurred at a popular park and baseball complex in Alexandria, Virginia, where Republican lawmakers and others were gathered for a morning practice about 7 a.m. They were in good spirits despite the heat and humidity as they prepared for the congressional baseball match that pits Republicans against Democrats. The popular annual face-off, which raises money for charity, was scheduled for Thursday evening at Nationals Park across the Potomac River in Washington.

The team was taking batting practice when gunshots rang out and chaos erupted.

Scalise was fielding balls on second base when he was shot, according to lawmakers present, then dragged himself into the outfield to get away from the gunman.

Rep. Mo Brooks, an Alabama Republican, said his colleague “crawled into the outfield, leaving a trail of blood.”

“We started giving him the liquids, I put pressure on his wound in his hip,” Brooks said.

Texas Rep. Joe Barton, still in his baseball uniform, told reporters a shooter came out to the practice and opened fire, shooting at Rep. Trent Kelly, R-Miss., who plays third base.

“He shot at Steve Scalise, our second baseman. He hit Steve Scalise,” Barton said, “Scalise’s security detail and the Capitol Hill police immediately returned fire, and Alexandria Police also immediately came and began to return fire. They shot the shooter. The security detail saved a lot of lives because they attacked the shooter.”

sm, or whether Scalise was targeted.

After the gunfire stopped, Sen. Flake, of Arizona, said he ran onto the field and also tried to come to Scalise’s aide.

After medical personnel arrived, he said he retrieved Scalise’s phone and made the first call to Scalise’s wife to notify her of the shooting. He said he did so to ensure that Mrs. Scalise would not find out about the shooting through the media.

Flake estimated that more than 50 shots were fired.

Scalise, a popular and gregarious lawmaker, is known for his love of baseball and handed out commemorative baseball bats to fellow lawmakers when he secured the No. 3 job of House whip several years ago.

Falisa Peoples was just leaving the YMCA next to the ball field when she saw the shooter open fire.

“He was just very calm. He was just walking and shooting,” she said of the man, whom she described as white and wearing a T-shirt and shorts. She said he was using a long gun and exchanging fire with law enforcement officers, one of whom yelled for her to get down.

In a brief interview in a Senate hallway, Senate Majority Leader Mitch McConnell said, “I think everybody handled it well and things seem to be under control.”

Other lawmakers were stunned in the aftermath of the event, which raised questions about the security of members of Congress. While the top lawmakers, including Scalise, have security details, others do not and regularly appear in public without protection. The last time a lawmaker was shot was when Democratic Rep. Gabby Giffords of Arizona was hit in the head and grievously injured while meeting with constituents at a supermarket parking lot in 2011.

Following the Giffords shooting, lawmakers have held fewer open town halls and have been advised to increase security at such events.