The grocery chain gave a disappointing profit forecast for the year, days after the abrupt resignation of its longtime CEO.