Dynamics of unsteady cavitating flow in compressible two-phase fluid