An Israel Police officer in the central Israeli city of Netanya was stabbed in the neck by a Palestinian man in what is being described by police as likely a terror attack.

The police officer, 26, was able to use his gun to shoot the attacker, who was moderately wounded. A female pedestrian at the scene was lightly injured from the gunfire as well, according to police.  All of the wounded were treated at the scene and then taken to a local hospital for treatment.

The attacker was identified by police as a Palestinian man, 44, from the West Bank city of Tulkarem.

An eyewitness to the attack told the Ynet news website that the stabber called out “Allahu Akbar,” or God is Great, before attacking the police officer.

The attack took place as President Donald Trump was making his way from Bethlehem in the West Bank to Yad Vashem in Jerusalem. Police are on high alert throughout the country during the presidential visit.