The S&P 500 Index closed down 0.4%, with four of 11 sectors trading lower. Communications and real estate stocks were the biggest decliners, while energy and materials led gaining sectors.