Resonant subharmonic absorption and second-harmonic generation by a fluctuating nonlinear oscillator