The authorities said 21 people were being treated at the scene and five were taken to the hospital, while the suspect was taken into custody.