Brazil’s state-controlled oil producer earnings missed estimates in the third-quarter despite record oil and gas production and a favorable backdrop of high crude prices and strong refining margins.