Local officials and witnesses said the stampede began after a girl fell down in the middle of a crowd leaving a mosque .