A fuel-gauge malfunction was partly to blame but prosecutors said the pilot had succumbed to panic, praying out loud instead of following emergency procedures and then opting to crash-land the plane instead trying to reach a nearby airport.