Freud was a silly old man, but he's so often right, you know.
Death is often associated with sex. Can it be that the death of a fellow student led you to think about - what if you died tomorrow and you never had any sex?
On the other hand, is your family history and herritage in any way restrictive about sex? Or do you have too much pride?
Sex is a natural urge, you know. Everybody has it. You may fight it as much as you wish, but we're, in essence, animals and we all have our urges, like it or not... Your desire to hurt yourself, and your hatred of yourself, are likely related to you trying to punish yourself for having sexual urges.
You certainly do need professional help, and you need someone who is considerably outside your comfort zone if you really want to get it. I would say that anyone who showers his/her patients with long-term drug treatments is not really into helping the patient, but it does work for some people.
On the other hand, physical excercise - like sports - can do wonders to a mind. You should give it a try.