We show through numerical simulations that transverse-mode competition induced by spatial hole-burning in gain-switched vertical-cavity surface-emitting lasers gives rise to rich nonlinear dynamics, including period doubling, optical chaos, and anti-phase oscillations. The spatio-temporal nature of gain switching is explored over a wide range of modulation currents and modulation frequencies.