A homemade firebomb exploded inside a public high school in Chile on Wednesday, igniting a blaze that injured at least 34 students and one teacher, with several in serious condition, firefighters said.