PHOTO: KYW
Now playing
01:29
Police respond to shooting in Philadelphia
AURORA, CO - DECEMBER 15: (EDITORIAL USE ONLY) Rocky Mountain Regional VA Medical Center investigational pharmacy technician Sara Berech prepares a dose of the Johnson & Johnson COVID-19 vaccine for a clinical trial on December 15, 2020 in Aurora, Colorado. The Johnson & Johnson vaccine could be submitted for emergency use by late January and is the only vaccine among leading candidates given as a single dose. (Photo by Michael Ciaglo/Getty Images)
PHOTO: Michael Ciaglo/Getty Images
AURORA, CO - DECEMBER 15: (EDITORIAL USE ONLY) Rocky Mountain Regional VA Medical Center investigational pharmacy technician Sara Berech prepares a dose of the Johnson & Johnson COVID-19 vaccine for a clinical trial on December 15, 2020 in Aurora, Colorado. The Johnson & Johnson vaccine could be submitted for emergency use by late January and is the only vaccine among leading candidates given as a single dose. (Photo by Michael Ciaglo/Getty Images)
Now playing
02:46
FDA says Johnson & Johnson vaccine is safe and effective
AUGUSTA, GEORGIA - NOVEMBER 15: Tiger Woods of the United States looks on from the third tee during the final round of the Masters at Augusta National Golf Club on November 15, 2020 in Augusta, Georgia. (Photo by Patrick Smith/Getty Images)
PHOTO: Patrick Smith/Getty Images
AUGUSTA, GEORGIA - NOVEMBER 15: Tiger Woods of the United States looks on from the third tee during the final round of the Masters at Augusta National Golf Club on November 15, 2020 in Augusta, Georgia. (Photo by Patrick Smith/Getty Images)
Now playing
02:43
Tiger Woods' team gives an update on his condition
Connolly
PHOTO: CNN
Connolly
Now playing
03:51
'I will not be lectured' on bipartisanship: Lawmaker fires back at Jim Jordan
PHOTO: KCAL/KCBS
Now playing
01:37
Official details speaking with Woods in moments following accident
PHOTO: CNN
Now playing
04:15
Experts: Former CIA agent victim of microwave weapon in Moscow
Trump supporters clash with police and security forces as people try to storm the US Capitol on January 6, 2021 in Washington, DC. Demonstrators breeched security and entered the Capitol as Congress debated the 2020 presidential election Electoral Vote Certification.
PHOTO: Brent Stirton/Getty Images
Trump supporters clash with police and security forces as people try to storm the US Capitol on January 6, 2021 in Washington, DC. Demonstrators breeched security and entered the Capitol as Congress debated the 2020 presidential election Electoral Vote Certification.
Now playing
04:34
This is what we learned from Capitol riot hearing
Now playing
02:08
Cabinet secretary explains why he took on challenging role
Angelo Quinto
PHOTO: Law Offices of John Burris
Angelo Quinto
Now playing
02:00
Man dies after police kneel on his neck, family says
PHOTO: AFP/Getty Images
Now playing
04:54
Ocasio-Cortez rips Democrat's doubts about Biden nominee
Then-President Donald Trump addresses supporters during a Make America Great Again rally in Erie, Pennsylvania, October 20, 2020.
PHOTO: SAUL LOEB/AFP/Getty Images
Then-President Donald Trump addresses supporters during a Make America Great Again rally in Erie, Pennsylvania, October 20, 2020.
Now playing
02:44
What Trump's released tax records mean for DA's criminal case
From left, President Joe Biden, First Lady Jill Biden, Vice President Kamala Harris and her husband Doug Emhoff, bow their heads during a ceremony to honor the 500,000 Americans that died from COVID-19, at the White House, Monday, Feb. 22, 2021, in Washington. (AP Photo/Evan Vucci)
PHOTO: Evan Vucci/AP
From left, President Joe Biden, First Lady Jill Biden, Vice President Kamala Harris and her husband Doug Emhoff, bow their heads during a ceremony to honor the 500,000 Americans that died from COVID-19, at the White House, Monday, Feb. 22, 2021, in Washington. (AP Photo/Evan Vucci)
Now playing
05:45
Biden leads nation in mourning 500,000 US Covid-19 deaths
PHOTO: NASA
Now playing
01:15
Watch the Perseverance rover's first footage of Mars
donald trump juicio politico violencia capitolio presidente eeuu gobierno senado aristegui mexico roberto izurieta republicanos democratas_00002909.png
donald trump juicio politico violencia capitolio presidente eeuu gobierno senado aristegui mexico roberto izurieta republicanos democratas_00002909.png
Now playing
02:48
Supreme Court allows release of Trump tax returns
trump impuestos fiscal nueva york eeuu corte suprema investigacion dusa juan carlos lopez_00021006.png
trump impuestos fiscal nueva york eeuu corte suprema investigacion dusa juan carlos lopez_00021006.png
Now playing
04:06
Trump fires back at Supreme Court ruling in statement
Now playing
02:27
Bash: Cruz looking for Fox News sound bite at Garland hearing
Now playing
04:34
See what has happened to Trump's DC hotel after his loss
(CNN) —  

A suspect has been arrested after he barricaded himself for hours in a North Philadelphia home in a shooting standoff that left six officers wounded, police said.

“Suspect is in custody. SWAT is still clearing the house,” Philadelphia Police Sgt. Eric Gripp tweeted early Thursday.

The shooting started at 4:30 p.m. Wednesday and was followed by a standoff that lasted nearly eight hours.

Two officers and three others who had been trapped inside the row house were evacuated by a SWAT team a few hours before the standoff ended, Philadelphia Police Commissioner Richard Ross Jr. told reporters.

“They were able to use stealth to do it,” he said, adding he didn’t think the shooter was aware of the rescue mission.

Before the standoff ended, negotiators had been trying to communicate with the shooter, but the gunman was only picking up the phone without answering, Ross said at one news conference.

Authorities trying to convince him to surrender were making a little bit of progress. The man’s attorney joined a phone call and tried to assure the suspect that police were not going to harm him.

’It’s disgusting’ how many bullets and weapons the suspect has

Shortly after midnight, police announced the suspect had been arrested.

Some officers were in the kitchen of the house when the shooter fired and police shot back. “Many of them had to escape through windows and doors,” he said. The shooter has continued to fire out of the windows, the commissioner said.

Police went to the home in the Nicetown-Tiago neighborhood around 4:30 p.m. ET with a narcotics warrant, Ross said.

A law enforcement source told CNN that it was a state warrant, but at least one person in the house is the subject of a federal law enforcement investigation.

Video from a news helicopter showed more than 50 police vehicles at the scene just after the shooting began.

Police reported sporadic gunfire into the evening.

Four women were escorted out of the building by Philadelphia police SWAT members, said Greg Argos, a reporter for KYW.

The KYW reporter described the women as “visibly upset, crying, as they were escorted down the street.”

One woman said of the officers: “They kept us safe the whole time, the whole time, they kept us safe.”

At different times, Gripp asked media helicopters to clear the area and for people to not fly drones.

President Donald Trump was briefed on the shooting, deputy White House press secretary Hogan Gidley said.

CNN’s Evan Perez, Dave Alsup and Chris Boyette contributed to this report.