On the Timoshenko beam vibrating under an obstacle condition