A fire in a school dormitory in central Kenya killed 17 students and seriously burned 13 others, police said.