An entropy preserving relaxation scheme for ten-moments equations with source terms (Communications in mathematical sciences)