A St. Mary Parish Sheriff’s Office deputy has been hospitalized after being shot Sunday morning while responding to a shooting in Ashton.

Deputies rushed to a home on Dumesnil Road at 6:10 a.m. Sunday after a shooting at the residence left one man wounded, St. Mary Parish Sheriff’s Office spokeswoman Traci Landry said.

Deputies found the wounded man outside the house, pulled him to safety and loaded him into an ambulance for the trip to the hospital, but shortly afterward the gunman inside the house opened fire on the deputies, sending the officers scurrying for cover, Landry said.

As other deputies tried to help those pinned down to safety, the man in the house opened fire again, wounding a sheriff’s deputy, Landry said.

The shooter then barricaded himself inside the house, starting a three-hour standoff with St. Mary deputies, state troopers and officers from neighboring parishes, KATC-TV reports. Authorities shut down portions of U.S. 90 during the standoff.

A State Police SWAT team used a robot to enter the home, said State Police spokesman Master Trooper Brooks David, whose agency is handling the investigation into the shooting.

A video feed from the robot allowed troopers to see where the shooter was holed up in the home, David said, and the SWAT team burst in and managed to arrest him about 1:30 p.m.

It appears the initial 911 call was placed by the shooter, David said.

The shooter, who has not been identified, was taken to the hospital for treatment, though the nature and extent of his injuries were unclear Sunday evening. Once released from the hospital, the suspect will face multiple counts of attempted first-degree murder of a police officer, one count of attempted murder and possible additional counts, David said.

The wounded deputy remained hospitalized and emerged from surgery shortly before 6 p.m. Sunday, David said, but information about his condition wasn’t immediately available.

The victim of the initial shooting also is being treated and is listed in stable condition, David said.