Boeing has reported a massive loss of more than six billion dollars (£4.6 billion) in the third quarter, dragged down by a work stoppage and charges tied to its commercial aircraft and defence programmes.