International humanitarian law
According to the UN Special Representative to the Secretary-General on Children and Armed Conflict: "International humanitarian law prohibits armed forces and groups from using schools while children and teachers are using them for educational purposes." And according to Human Rights Watch it is "unlawful to use a school simultaneously as an armed stronghold and as an educational center."