The judge punished the girl for her naughty behaviour with a belt