Police from Zone 2 responded to a ShotSpotter alert for shots fired in the 2500 block of Bedford Avenue just before 2 p.m.
Two males had been shooting at each other when arriving officers witnessed one of the males run into an apartment building with six units inside.
SWAT was called to ensure the occupants safety and search for the suspect. Operators received information from a female who reported that her apartment was locked when it should not have been.
After gaining access to the apartment, SWAT located the suspect and took him into custody.
He had an outstanding warrant and he faces multiple charges, including criminal trespass.
The investigation is ongoing.