A student opens fire at a Southern California high school, killing two students and wounding three others before turning the gun on himself, authorities say.