Some Heroes have the ability to make themselves, or their teammates, invisible.
Invisible opponents can't be auto-targeted by your AI teammates, and your aim assist won't snap to these targets.
Your best bet to counter this ability is to take manual control of your best Hero and look for the invisible opponent yourself. They're not immune to damage while invisible, so look for the outline, and fire away! They can't fire back without exposing themselves!