The girl was arrested on suspicion of attempted murder after the chaos erupted at the end of morning break at Amman Valley School on Wednesday.
Bangladesh has closed schools and colleges due to extreme heat for the second year in a row.
It follows the government's decision to scrap key climate targets and its response to a review into gender services.