Someone in the cockpit of a TransAsia Airways plane apparently made a mayday call because of an engine problem shortly before the aircraft crashed.