Foot Locker, the New York-based specialty athletic retailer, has swung to a second quarter loss after reporting slower sales and higher markdowns as it tried to clear inventory to make way for autumn merchandise.