Rotary tool with flex shaft