A remark on compact hypersurfaces with constant mean curvature in space forms