Remove the little balls, one pill at a time, using a small pair of scissors or a razor blade, being careful not to damage the fabric by cutting too close to the surface.
Or, you can purchase a sweater comb or electric fabric shaver, then drag it across the fabric to remove the pills, these are usually available in department stores.