DALLAS (CBSDFW.COM) – A suspect is dead after he tried to rob a man at an apartment complex near the SMU campus late Tuesday evening, police say.

Police say officers responded to the shooting call at the Mockingbird Flats complex at 5600 SMU Boulevard. When they arrived, a victim who was shot flagged the officers down.

READ MORE: 2-Year-Old Wanders Into Backyard, Drowns In Pool

According to police, the victim, identified as Justin McNeely, told officers that he shot a suspect who tried to rob him, and that the suspect was in his apartment with a gunshot wound.

The suspect was pronounced dead at the scene. His identity has not yet been released.

READ MORE: Texas Lawmakers Debating Redistricting As Third Special Session Begins At State Capitol

McNeely was taken to the hospital in good condition.

Authorities say the victim spoke with detectives at police headquarters where he admitted to shooting the suspect during a robbery attempt. According to police, his story supports evidence found at the scene.

Police say McNeely was released from custody as the investigation into the shooting continues.

MORE NEWS: A Closer Look At 4 Drugs Used To Treat COVID-19; What Really Works?

A resident at the apartment complex said there was an email about a week ago about an armed robbery in the parking garage. Police have not said if the two incidents are related.