Tests taken after Senator Edward M. Kennedy suffered a seizure indicated that he has a type of cancer called a malignant glioma.