Real-time study of the adiabatic energy loss in an atomic collision with a metal cluster