Police shot dead the suspected attacker, who they say was from the city of Salfit in the occupied West Bank.