A former shareholder of Flybe has stepped in to buy the airline out of administration.