The suspected gunman who shot a barrage of bullets into a Philadelphia police car late Thursday and who also allegedly pledged allegiance to the Islamic State group reportedly traveled to the Middle East twice in the past five years, ABC News reported. Edward Archer, now in police custody, traveled once to Saudi Arabia in 2011 for hajj — the Muslim pilgrimage — and once to Egypt the following year, law enforcement officials said.

On both trips Archer flew out of New York-area airports using a U.S. passport. The FBI is investigating if the trips had anything to do with the shooting. Archer, from Yeadon, Pennsylvania, about 25 minutes from Philadelphia, allegedly shot at Police Officer Jesse Hartnett more than 10 times, hitting him three times, leaving him in a critical but stable condition.

Archer told detectives he follows “Allah. I pledge my allegiance to the Islamic State, and that’s why I did what I did,” Philly.com reported. Police are looking into whether Archer had any contact with the extremist organization, also known as ISIS, or other terrorist cells. The FBI searched his house after the shooting and also was combing through his internet activity to see if he was connected to the group. FULL REPORT