Nonlinear dynamics of a sinusoidally driven lever in repulsive magnetic fields