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.

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.

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.

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.