Three-dimensional instability and state selection in an oscillatory axisymmetric swirling flow