Stocks posted a loss for the first day of October, a month known for volatility.