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