Three Israeli soldiers were injured when a Palestinian driver rammed his car into them in the West Bank early Thursday, according to medics.

Israel's military said that three pedestrians had been wounded in the attack near Nablus. It said forces shot and struck the assailant.

Israeli Magen David Adom ambulance service told NBC News that the victims were Israeli soldiers. Two suffered serious injuries, the ambulance service added.

Prime Minister Benjamin Netanyahu called the vehicular attack an act of terrorism, offering praise in a statement for "the action of the IDF soldiers who reacted quickly and neutralized the terrorist."

In a separate incident, four Palestinians were killed and another 30 wounded in the southern Gaza town of Rafah along the Egyptian border, medical officials and local residents said. Reports suggested that an unexploded Israeli missile from last year's war was blamed for the blast.