Boeing sees reduced first-quarter loss as defence earnings rise amid $2.3bn US Pentagon contract.