Organisers of a funfair at an Islamic school have been arrested after several children were killed in a stampede.