Gloucester man to serve decade behind bars for death of fellow inmate