US supermarket chain Spartan Stores has posted a quarterly net loss, citing a fall in sales in the slow economy.