A manhunt is on for a suspect who allegedly opened fire on a plainclothes Philadelphia police officer Tuesday night.

Police told Action News the gunman, who was wearing a hooded sweatshirt over his face, fired at least 10 shots at the officer.

Officials say a plainclothes officer in an unmarked car was conducting surveillance in the area when the gunman walked up and opened fire. He shot at the driver's side of the car. The officer was not injured.

"He was sitting in the driver seat, so he's very very lucky that he was not struck by gunfire," said Philadelphia Chief Inspector Scott Small.