En tonårspojke döms till ungdomstjänst efter en misshandel på Malmens friskola i Gällivare.