A $280 million quarterly loss marks a sharp reversal from last year’s $108 million profit.