SCHENECTADY — A wanted parolee was taken into custody after police SWAT team stormed into a James Street home late Wednesday morning, concluding hours of attempted negotiations with the man.

Rafael Gonzalez, 24, of Schenectady was brought out by police with his hands cuffed behind his back after tear gas and flash grenades were fired into the home at 67 James St.

Gonzalez was then placed on a stretcher put into an ambulance.

As tear gas fumes wafted through the neighborhood and a gaggle of area residence and media looked on, two other people, an unidentified man and woman, were also brought out of the home and taken in for questioning after authorities rushed into the building shortly before 11 a.m.

Video: Suspect apprehended amidst tear gas pic.twitter.com/W8KCs0sQiq — Jake Lahut (@JakeLahut) June 1, 2016

Police fired tear gas and flash grenades into the home before entering the building.

Gonzalez was wanted by U.S. Marshals for a parole violation, according to Lt. Mark McCracken of the Schenectady police. Marshals and Schenectady police came to the residence at 6 a.m. to serve Gonzalez with a warrant for his parole violation when he and two others holed themselves up inside the house, leading to an hours long standoff.

As the standoff wore on, McCracken, in the role of negotiator, often could be heard shouting into a bullhorn as police surrounded the home.

"Is there something I can do for you? Come down. You're a good person deep down," McCracken said repeatedly.

At one point, a female detective took his place and spoke to Gonzalez in Spanish.

Police also enlisted members of Gonzalez's family to make phone calls to him, McCracken said after the three were taken into custody.

According to McCracken, Gonzalez never responded to negotiators.

At times the scene was fraught, and even dramatic, as when Gonzalez fell over on the home's balcony, apparently overcome by tear gas. That's when the unidentified woman cried for help as she stood by his side. Police told her to get him up and he eventually staggered to the balcony railing.

Police seized that opportunity to move through the house and apprehend Gonzalez.

During the incident, neighboring homes were cleared and SWAT team members were strategically placed. Police tape closed James Street about halfway between State Street to the south and Central Park to the north.

A crowd of neighbors and passersby began to show up on either end of James Street to take in the spectacle, as others watched from nearby balconies.

Video: Flash bangs and gas deployed by swat team at James St. standoff in Schenectady @timesunion pic.twitter.com/IudnDrqlZD — Jake Lahut (@JakeLahut) June 1, 2016

The standoff took place just a few blocks from where two people were stabbed late Tuesday. There was no obvious link between the two incidents.

A man and a woman were hospitalized late Tuesday after suffering stab wounds, police said.

Officers went to 1317 State St., at about 10:30 p.m. after someone called to say the man was stabbed.

Police said he was not responding when they arrived at the scene. He had a stab wound to the chest and a woman at the home had also been stabbed.

Both were taken to Ellis Hospital, where police said they were treated for injuries that do not threaten their lives.

Police said they have no information about a possible suspect in the case.