NBC News: Nasdaq, S&P 500 end lower as investors sell tech, buy less pricey sectors