Apache Corp on Thursday reported a quarterly loss compared with a year-ago profit as a slump in crude prices led the U.S. oil and…