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