Attached shock wave oscillations in transonic flow