The migrants were rescued by the Spanish coast guard after their boat was engulfed in flames.