What parasite caused her disease?

A girl developed generalized seizures. A CT scan revealed a single brain lesion consistent with a tumor. Biopsy of the session showed cysticerus. The patient lived in South Carolina and had never traveled outside the state. What parasite caused her disease? How is this disease transmitted? How might it be prevented?