Stochastic behavior of a quantum pendulum under a periodic perturbation