LONG BRANCH -- A man wanted for stabbing two people in the neck early Saturday was arrested after he barricaded himself inside a city house Wednesday morning and kept authorities at bay for several hours.

Denismar Andrade, 27, was arrested following a lengthy standoff with police, Monmouth County Prosecutor Christopher Gramiccioni said.

Andrade was wanted by Long Branch police on attempted murder charges, Gramiccioni said. He is accused of stabbing two Long Branch residents in the neck during a robbery around 1:20 a.m. on Saturday, Gramiccioni said. The two victims have since been released from the hospital, the prosecutor said.

The police investigation led authorities to a house on the 200 block of Ludlow Street Wednesday morning. Gramiccioni said Andrade barricaded himself in the basement of the house.

A resident of the house, who did not want to be identified, told NJ Advance Media Andrade showed up two days ago and asked to rent a room.

The owner of the house, Vince Marone, said he wasn't aware Andrade had been staying at the home. Marone said he rents the home out to a family.

When members of the Monmouth County Emergency Response Team entered the home, they found Andrade had barricaded himself inside the wall and had a supply of food and water, Gramiccioni said.

Andrade then surrendered to authorities, the prosecutor said.

"Detectives have no reason to believe that Andrade acted in concert with anyone and there is no further danger to the public," Gramiccioni said in a statement.

The U.S. Marshals Service responded to the scene because U.S. Immigration and Customs Enforcement (ICE) had a detainer on Andrade since 2006, Gramiccioni said. An ICE detainer is a notification to local and state law enforcement agencies that a person is possibly eligible for deportation.

Shortly after 1 p.m., Andrade could be seen being placed in the back of an ambulance on a stretcher.

The hours-long standoff drew a large police presence from agencies around the county. Members of the Long Branch Police Department, Long Branch Fire Department, Monmouth County Sheriff's Office and Monmouth County Prosecutor's Office responded to the scene.

"The Monmouth County Prosecutor's Office would like to thank the agencies that participated in the investigation that led to Andrade's arrest," Gramiccioni said.

Alex Napoliello may be reached at anapoliello@njadvancemedia.com. Follow him on Twitter @alexnapoNJ. Find NJ.com on Facebook.

Rob Spahr may be reached at rspahr@njadvancemedia.com. Follow him on Twitter @TheRobSpahr. Find NJ.com on Facebook.