There were about 150 people, including many children, in the building when the shooting occurred, the Post-Dispatch reported.
After police were alerted, an officer ran into the community center, and the gunman fired at him several times, breaking the glass in a set of glass doors, the newspaper reported. The officer returned fire and injured the gunman, according to the Post-Dispatch.
The officer was not injured, KMOV reported.
“I believe the action of our police officer was quite heroic. He immediately went inside the community center and confronted the gunman,” Carson told the television station.
The community center has been closed until further notice, officials from the Maryland Heights Police Department tweeted Tuesday.