A Palestinian tried to ram a car into a military post in the occupied West Bank on Thursday but was shot dead, the Israeli army said, in the third attack of the day.