PHOTO: KYW
Now playing
01:29
Police respond to shooting in Philadelphia
PHOTO: CNN
Now playing
01:26
Sen. Joe Manchin explains why he wanted changes to relief bill
WASHINGTON, DC - MARCH 06: President Joe Biden speaks from the State Dining Room following the passage of the American Rescue Plan in the U.S. Senate at the White House on March 6, 2021 in Washington, DC. The Senate passed the latest COVID-19 relief bill by 50 to 49 on a party-line vote, after an all-night session. (Photo by Samuel Corum/Getty Images)
PHOTO: Samuel Corum/Getty Images
WASHINGTON, DC - MARCH 06: President Joe Biden speaks from the State Dining Room following the passage of the American Rescue Plan in the U.S. Senate at the White House on March 6, 2021 in Washington, DC. The Senate passed the latest COVID-19 relief bill by 50 to 49 on a party-line vote, after an all-night session. (Photo by Samuel Corum/Getty Images)
Now playing
01:36
Biden spokesperson: President doesn't want to end the filibuster
Now playing
02:29
MS gov. encourages residents to wear masks despite dropping mandate
Now playing
02:18
Town previously overrun by ISIS prepares to host Pope Francis
Biden 03062021
PHOTO: CNN
Biden 03062021
Now playing
02:28
'Help is on the way': Biden speaks after Senate passes relief plan
Sen. Lisa Murkowski (R-AK) asks a question at a hearing of the Senate Health, Education, Labor and Pensions Committee on September 23, 2020 in Washington, DC.
PHOTO: Alex Edelman/Pool/Getty Images
Sen. Lisa Murkowski (R-AK) asks a question at a hearing of the Senate Health, Education, Labor and Pensions Committee on September 23, 2020 in Washington, DC.
Now playing
01:40
Trump plans to campaign against Sen. Murkowski in 2022
01 senate stimulus bill 210306
PHOTO: Senate TV
01 senate stimulus bill 210306
Now playing
01:47
Senate passes Biden's $1.9 trillion Covid-19 relief bill
Pope Francis meets with Iraq's leading Shiite cleric, Grand Ayatollah Ali al-Sistani in Najaf, Iraq, Saturday, March 6, 2021. The closed-door meeting was expected to touch on issues plaguing Iraq's Christian minority. Al-Sistani is a deeply revered figure in Shiite-majority Iraq and and his opinions on religious matters are sought by Shiites worldwide.
PHOTO: Vatican Media/AP
Pope Francis meets with Iraq's leading Shiite cleric, Grand Ayatollah Ali al-Sistani in Najaf, Iraq, Saturday, March 6, 2021. The closed-door meeting was expected to touch on issues plaguing Iraq's Christian minority. Al-Sistani is a deeply revered figure in Shiite-majority Iraq and and his opinions on religious matters are sought by Shiites worldwide.
Now playing
01:42
Pope Francis holds historic meeting with revered Shia cleric
WASHINGTON, DC - MARCH 05: Sen. John Cornyn (R) (R-TX) talks with Sen. Joe Manchin (D-WV) while walking to the U.S. Senate chamber for a vote March 05, 2021 in Washington, DC. The Senate continues to debate the latest COVID-19 relief bill.  (Photo by Win McNamee/Getty Images)
PHOTO: Win McNamee/Getty Images
WASHINGTON, DC - MARCH 05: Sen. John Cornyn (R) (R-TX) talks with Sen. Joe Manchin (D-WV) while walking to the U.S. Senate chamber for a vote March 05, 2021 in Washington, DC. The Senate continues to debate the latest COVID-19 relief bill. (Photo by Win McNamee/Getty Images)
Now playing
02:54
Axelrod breaks down Manchin's surprising move
sinema
PHOTO: CNN
sinema
Now playing
01:50
Senator's move has many on the internet outraged
PHOTO: FBI
Now playing
02:58
Trump State Department official charged in Capitol riot
John King Magic Wall 0305
PHOTO: CNN
John King Magic Wall 0305
Now playing
02:17
President Biden sending a team to the US-Mexico border
PHOTO: CNN
Now playing
02:53
Here's how Canadian schools have stayed open
This image was taken during the first drive of NASA's Perseverance rover on Mars on March 4, 2021. The team has spent the weeks since landing checking out the rover to prepare for surface operations.
PHOTO: JPL-Caltech/NASA
This image was taken during the first drive of NASA's Perseverance rover on Mars on March 4, 2021. The team has spent the weeks since landing checking out the rover to prepare for surface operations.
Now playing
02:17
NASA releases stunning new images from Mars
Rep john garamendi 0305
PHOTO: CNN
Rep john garamendi 0305
Now playing
02:33
Rep. Garamendi: Any lawmaker involved in Capitol riots ought to be thrown out of Congress
A view of Capitol Hill during heightened security concerns over possible protests or violence tomorrow March 3, 2021, in Washington, DC. - Washington's security posture has been bolstered after threats of a possible March 4, 2021, "breach" of the US Capitol, with the House of Representatives changing its voting plans to avoid gathering members on a day of potential unrest. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
PHOTO: Brendan Smialowski/AFP/Getty Images
A view of Capitol Hill during heightened security concerns over possible protests or violence tomorrow March 3, 2021, in Washington, DC. - Washington's security posture has been bolstered after threats of a possible March 4, 2021, "breach" of the US Capitol, with the House of Representatives changing its voting plans to avoid gathering members on a day of potential unrest. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
03:18
Rep. Sarbanes: Failure to pass HR 1 'would split our democracy in two'
(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.