You won't. Most dogs are bomb sniffing.

In some circumstance if you do, just try to distance yourself away from the dog, without showing haste.

Not getting caught is blending in with the crowd, and not sticking out like a needle in a haystack. 99% of the time, it's your behavior and appearance that determines if you get caught.