If the creature you control is an illegal target as Domri’s Ambush tries to resolve, you won’t put a +1/+1 counter on it. If that creature is a legal target but the other target isn’t, you’ll still put the counter on the creature you control.