DAYTON, Ohio (WDTN) — A weapons complaint investigation ended with the suspect in custody on Wednesday.

According to Montgomery County Regional Dispatch, officers were at a home on the 300 block of Lorenz Avenue around 11 p.m. on Tuesday for a weapons complaint.

Upon arrival, officers saw several people in the street, however, they started to disperse. Police reported seeing one individual with a weapon. Officers attempted to stop and detain the man but he fled into a residence.

Police then set up a perimeter and as one of the officers was walking around the house, he heard a gunshot and saw a flash. The shot was loud enough that the officer temporarily lost hearing, police reported.

Officers were able to order the person outside of the home and detained him.

Police said that due to the nature of the investigation, police did call for backup with the violent offender unit.

The 40-year-old suspect has been taken to the Montgomery County Jail and is facing charges of felonious assault and possession of weapons under disability.

No one was injured in the incident.