Updated at 5:50 p.m.: Revised to include that the incident has ended.

Police arrested a man after an hours-long standoff in Hurst on Monday.

The man barricaded himself inside a home in the 1100 block of Hurstview Drive shortly after noon when officers attempted to serve a warrant, police said. Officials closed the street between Bedford Euless and Pipeline roads for several hours while they talked to the man.

SWAT officers arrived at the scene around 1 p.m., KXAS-TV (NBC5) reports.

One person is contained in a house in the 1100 block of Hurstview Drive, and the police are in communication with the individual. — Hurst PD (@HurstPoliceDept) May 1, 2017

Around 4:30 p.m., police said, the man surrendered peacefully and was taken into custody.

According to the Fort Worth Star-Telegram, the man was wanted on a warrant out of Grand Prairie.

The Grand Prairie Fire Department said in a statement that the man formerly worked as a firefighter and paramedic there. He resigned in October for personal reasons, the department said.