You are describing an unusual event following treatment for erectile dysfunction. Are your symptoms related in any way to orgasm or sex?
What is the cause of your erectile dysfunction? Is it organic (e.g. diabetes related)? Psychological? Have you ever had any prostate surgery (e.g. TURP, cystoscopy)? How old are you? These details will help us to understand and maybe advise.