The answer is yes for finite groups -- you can even ensure your space is a hyperbolic surface, or hyperbolic 3-manifold. The result for 3-manifolds is Sadayoshi Kojima's. For hyperbolic surfaces I forget who its due to, but I think the reference is in Kojima's paper.
For compact Lie groups I think you can just make your space some variant of the Lie group itself (with a left-invariant metric). The idea would be to take the Lie group $G$ with its left-invariant metric. If that has a bigger isometry group than $G$ itself, take the product of $G$ with a ball (with some metric), and perturb the metric on $G \times B$, $G$-equivariantly. Some generic perturbation of the metric should kill all isometries other than the ones coming from the $G$-action.
Andre raises the question of whether or not this construction could be performed for $S^1 \equiv SO_2$. The issue being that with its left-invariant metric the isometry group is $O_2$. I don't see any reason why it shouldn't work. For example, take $S^1 \times D^2$. We don't put quite the product metric on $S^1 \times D^2$ but we do put Put a metric on it that's locally a product. The ideathis space which is to putlocally a metric onproduct, but where the fibres whichfibre is a disc with only onewhose isometry, which group is a rotation by $\pi$ about the centre -$\mathbb Z_3$, orientation- so there ispreserving isometries of a preferred axis in the disc, andtriangle. We make the isometryholonomy of the disc flipsbundle around the orientation ofbase circle the axisgenerator of this isometry group. On $S^1 \times D^2$ you putSo there can be no isometry of this bundle that reverses the metric wheredirection of the disc's axis does a rotation bybase space, since that would mean the holonomy is equal to its inverse, which in $\pi$$\mathbb Z_3$ can not happen. So the only symmetries of this bundle act as one goes aboutorientation-preserving isometries of the base, and orientation-preserving on the fibre, and this group is $S^1$$SO_2$.