DALLAS (CBSDFW.COM) — It was just before 10:00 p.m. on September 17 when Dallas police were called to an apartment complex after getting reports of someone going around knocking on doors.

When officers arrived at the complex, in the 3400 block of Webb Chapel Extension, they saw a person fitting the description given to them by dispatch.

READ MORE: Texas Democrats In Congress Say It's 'Unacceptable' Gov. Abbott Hasn't Released Billions In Stimulus For Public Education

The officers approached the man and at some point began performing a protective pat down. According to police, while the suspect was being frisked he pulled away and the officers began to struggle with him.

During the struggle, police say the suspect pulled out a handgun and began shooting and there was an exchange of gunfire with one of the officers.

READ MORE: Health Officials Urge Safety Measures Against West Nile Virus In North Texas

The suspect allegedly tried to run from the scene but was shortly captured.

Despite the shootout, no one was injured during the incident.

The 26-year-old suspect is in custody and charges are pending.

MORE NEWS: 350-Pound Man Wanted In Dallas For Alleged 'Lewd Sex Act With Children Present' In Restaurant

The shooting is under investigation.