Girl was in serious condition with burns after Thursday’s attack, student taken into custody