The chief executive of Boeing said the company made a “mistake” in handling a problematic cockpit warning system in its 737 Max jets before two crashes of the top-selling plane killed 346 people, and he promised transparency as the U.S. aircraft maker tries to get the grounded model back in flight.