Witnesses flagged down police for help. Officers observed the man pointing a gun at people on a surveillance camera.
They locked down the apartment building and said they shot the suspect after he confronted them.
The man was treated at a hospital and was jailed. The officers were not hurt in the incident.