The American aerospace giant reported a second-quarter loss of $428 million, smaller than in the year-ago period, but bigger than projected by analysts. Revenues rose eight percent to $24.6 billion.