I would recommend taking deep breaths, as you inhale imagine the urge going up to your brain from the lower body. Then release it slowly as if the urge has spread out in the brain and been converted into an energy. Repeat it several times, it has helped me when I feel horny. Then go listen some of your favourite music or motivational stuff. You will be good in no time.
Try not to protect the urge , instead acknowledge it that it is bad for you and you should .