This is caused by the reactivation of the herpes zoster virus which had been there since you had had chicken pox in your childhood. They remain "latent" in the dorsal root ganglion of the nerve before reactivation.
Treatment includes pain killer, anti-viral medication eg acyclovir and steroid in severe case