Place it at the exact beat where the pest appears, then follow it with a fail sound for the ruined moment or a round of clapping when the swat succeeds, keeping the pest as the visual focus throughout the gag.