Israeli forces killed two men who carried out a deadly attack in the West Bank near a Jewish settlement, which claimed three Israeli lives.