A still image from surveillance video shows a gunman (L) approaching a Philadelphia Police vehicle in which Officer Jesse Hartnett was shot shortly before midnight January 7, 2016 in Philadelphia, Pennsylvania this Philadelphia Police Department image released on January 8, 2016. REUTERS/Philadelphia Police Department/Handout

(Reuters) - The FBI is investigating the recent shooting of a Philadelphia police officer as a terrorist attack, FBI Director James Comey said on Wednesday, a Pennsylvania newspaper reported.

Comey’s comments at a Federal Bureau of Investigation field office in Pittsburgh and reported by the Pittsburgh Tribune-Review, were confirmed to Reuters by an FBI spokesman.

FBI investigators were seeking to find out if suspected gunman Edward Archer, 30, was in touch with or inspired by anyone linked to Islamic State, the report said.

Philadelphia police have said Archer pledged allegiance to the militant group before allegedly opening fire on police officer Jesse Hartnett in his patrol car last Thursday night.

“Your parents’ al Qaeda was a group that was focused on national landmarks, sophisticated ... events, carefully chosen operatives, lots of surveillance, and then trying to deliver the big thing. That was al Qaeda’s culture,” Comey said, according to the newspaper.

“This is entirely different, first in the way the message comes. They are crowd-sourcing terrorism, using Twitter and other forms of social media to try to motivate anybody” to conduct an attack, he was quoted as saying.

Police said on Sunday that a man stopped officers patrolling near the site of the attack and warned that Archer had been part of a group of four men who may pose a danger to police.

In the attack caught on video, a gunman police say was Archer was seen shooting into a patrol car driven by Hartnett, 33, who was shot in the arm but managed to fire back. Archer, who sustained a bullet wound to the buttocks, was arrested at the scene and charged with attempted murder.

Archer, police say, told them that the attack was done “in the name of Islam.”