Chaotic transitions in resonant asteroidal dynamics