MiG-27 crashes, pilot ejects safely