Two sheriff’s deputies and a 61-year-old man were wounded in an exchange of gunfire Sunday that followed a long standoff at the man’s house in Spotsylvania County, authorities said.

Deputies arrived at the house in the 10300 block of Gordon Road about noon Saturday to serve an emergency commitment order on the man, identified as Michael Antosh, the Spotsylvania County Sheriff’s Office said in a statement.

The statement did not specify a reason for the emergency order or give other details. On its Web site, the Fredericksburg Free-Lance Star reported that a sheriff’s official described Antosh as “depressed and very unhappy with life.”

In the statement, the sheriff’s office said that when deputies arrived, they tried to contact Antosh, but he barricaded himself in the house and threatened them with “a large-caliber firearm.”

The county’s emergency response team, along with a crisis negotiating team, went to the scene to try to defuse the situation, the office said. Negotiators tried for hours to communicate with Antosh, with little success.

The statement said that Antosh was “highly agitated and made numerous threats toward law enforcement and others.” Law enforcement personnel from nearby Stafford County and from Fredericksburg were sent to the area, about 10 miles southwest of Fredericksburg.

About 2:30 a.m. Sunday, the statement said, Antosh began shooting at deputies from inside and outside the house, and deputies fired back. Two deputies from Stafford County were hit during the exchange, the statement said. They were taken to a Fredericksburg hospital in stable condition and were expected to “make a full recovery,” the Spotsylvania County Sheriff’s Office said.

Antosh was taken to the same hospital, where he was listed in critical condition. He was to undergo surgery for gunshot wounds, the statement said.

A resident of the neighborhood, about 50 miles southwest of Washington, said Antosh and his wife seemed like “nice people.”