Discovery of inverse-Compton X-ray emission and estimate of the volume-averaged magnetic field in a galaxy group