The suspect, 35-year-old Tyleeb Reese, called police around 4:40 p.m. to say he was ready to surrender. He came out of his apartment building with his hands up a short time later.
Action News has learned Reese is a convicted sex offender and was being sought for a Megan's Law violation.
"There were no injuries to the suspect or law enforcement," Tpr. Lawrence Peele of New Jersey State Police said at a news conference after the surrender.
"I just seen the guy coming out of the house with his hands up, and he surrendered. He laid flat on the ground. It was a peaceful surrender. I'm glad he came out safe, I'm glad he is safe," said witness Tedra McCrea.
Just an hour before the situation came to an end, police used a piece of heavy machinery, belonging to the Pennsylvania State Police and known as a "ROOK," to pick up vehicles parked at the curb and moved them down the street.
Heavily fortified equipment brought in to Trenton barricade, is now moving cars away from the house pic.twitter.com/HG6fXjGRBu— Nora Muchanic (@Muchanic6abc) May 11, 2017
Earlier in the day, police used military-style "sound cannons" to drive Reese out of the building, but to no avail.
Happening now: police using a sonic cannon called an L-RAD A non-lethal sound projector to try dislodge a barricaded gunman.— John Rawlins (@JRawlins6abc) May 11, 2017
On Thursday morning, police fired what they called "tactical munitions," and authorities were also heard speaking on bullhorns, trying to coax Reese to surrender.
In their communications, police told Reese there are medics on the scene. It was possible he suffered a leg injury.
"Hey Ty, are you able to stand up now?" "Move toward the window."Law enforcement trying to get suspect to surrender. pic.twitter.com/HsjkOpM8hB— Katherine Scott (@KScott6abc) May 11, 2017
This all began around 6:20 a.m. Wednesday in the 300 block of Centre Street.
That's where, police say, U.S. Marshals from the New York-New Jersey regional fugitive task force were trying to serve a warrant when Reese opened fire on them.
Three Mercer County Sheriff's officers suffered minor injuries.
A bystander who was shot on the street was killed in the incident. That victim was identified Thursday morning by the Mercer County Prosecutor's Office as 56-year-old Robert Powell, Jr. of Lamberton Street in Trenton.
"As the officers were backing out of the house, under fire, the suspect continued to fire, during which time an individual outside the residence was struck by gunfire and is deceased," said Lt. Stephen Varn of Trenton Police.
Meanwhile, people who know the suspect said on Wednesday they had no explanation for Tyleeb Reese's actions. He was called "easy-going" and "a jokester."
"Everybody in the neighborhood knows him. He's kind to everybody. He's real good, friendly," said Talaya Johnson.
"In my shop he used to come in and get his haircut since he was a little kid," said retired barber George David. "I am really surprised, he's not that kind of fellow."