Witnesses said the gunman fired indiscriminately into the crowd of worshipers, which included men, women and children.