Transition to instability in a periodically kicked Bose-Einstein condensate on a ring