Invariant torus and its destruction for an oscillator with dry friction