Hydrodynamics of plasma in a dense pinch