JERUSALEM — Israeli police said an officer shot and wounded a Palestinian driver who attempted to run over and stab Israeli security personnel in the West Bank on Wednesday.

The Israeli military said the man attempted to ram his car into a soldier and a police officer at an intersection near the West Bank city of Nablus. The police said in a statement that the officer shot the Palestinian after he came out of the vehicle and ran at the officers with a knife.

The soldier and the policeman were lightly wounded while the attacker was moderately wounded, the army said.

Security camera footage from the incident published by Israeli media showed a silver vehicle appearing to accelerate and collide with a parked police car.

Palestinians have carried out dozens of stabbing, shooting and car-ramming attacks on Israeli security personnel and civilians in recent years. Most were by lone Palestinian attackers with no apparent links to armed groups.

Palestinians and human rights groups have frequently accused Israeli security forces of using excessive force.