At least eight people are killed when a student opened fire on his classmates at a Texas high school, authorities say.