Dynamics of processes occurring in laser ablation of metals in a liquid