An incident involving a man barricaded inside his home in Alexandria ended Wednesday just before noon when the man was taken into custody nearly 24 hours after police first tried to apprehend him.

“We did everything we can to ensure this peaceful outcome, and we’re glad it went this way,” police spokesman Marcel Bassett said. “We really appreciate all the support we received.”

Police from neighboring jurisdictions helped in the standoff, including Fairfax County’s helicopter division.

The suspect was not immediately identified, but Bassett said he lived in the home with his wife, who left without incident.

The standoff began around noon Tuesday in the 1000 block of Woods Place when Alexandria police got a call about “shots fired during a road-rage incident” at Duke Street and Whittier Drive.

Authorities said they found the suspect in that incident at his home and attempted to apprehend him but he “refused to surrender and barricaded himself in the home.”

Around 5:40 p.m. Tuesday, police said, the man fired “several rounds at officers” but “no officers have discharged their weapon in this incident,” according to a statement.

Residents who couldn’t leave their homes had been asked to “shelter in place.”

The incident occurred near Alexandria City High School, which is closed for the Thanksgiving holiday.