The plane was cruising at 34,000 feet when the emergency was declared