Two Palestinians were killed in an exchange of gunfire with Israeli forces in the West Bank, and another was shot dead after a stabbing attack, heightening tensions days before the start of a holiday period that has officials concerned of more widespread violence.