The United Arab Emirates says the co-pilot on a FlyDubai flight that nearly crashed with 182 people on board attacked the captain with the cockpit’s crash ax in a “terrorist attack.”