A 32-year-old man presents with a painful rash on the right side of his chest. It started as tingling and pain, followed by the eruption of vesicles on an erythematous base. The rash is unilateral and follows a clear dermatomal distribution (T4). What is the underlying cause of this condition?