Nonlinear resonant and chaotic dynamics in microwave assisted magnetization switching