Shock wave dynamics in a discrete nonlinear Schrodinger equation with internal losses