Yeah, majority of dugsis are abusive, violent, and disgusting. I don't know why Somalis continue sending their kids there.Back when i used to attend dugsi i'd beaten pretty much everyday.
Around maqrib time we had to return to the dugsi and memorize the next days' cashir, so i would talk and crack jokes. The dude looking over us would write my name on a piece of paper. The next day, hen everyone is leaving dugsi (in the evening) the teacher would read out the paper and tell those people to stay and others could go. When we were left he would get a wire (fiilo) and smack us on the had 4~6 times and a single time on the back then release us.
I got used to it, i didn't really care much since it didn't hurt much after. I never learnt my lesson. Me and friends just used to laugh when then teacher reads our name. We sometimes even had smiles on our faces.
Beating doesn't work.
Talk to the child, reach out for them.
But at the same time don't be too soft.