Regular and chaotic vortex core reversal by a resonant perpendicular magnetic field