A Palestinian man has been shot dead after the stabbing of a settler in the occupied West Bank.