A police officer tangled with a man during an arrest late at night in Brooklyn Park, resulting in both needing medical attention, authorities said.

The officer’s gun was discharged, but the shot struck no one during the incident, which occurred about 12:20 a.m. Sunday outside in a townhouse complex, according to the Hennepin County Sheriff’s Office.

The officer and the man were taken to a hospital “for evaluation,” the Sheriff’s Office said in a statement. The man was arrested upon his release from the hospital, the statement continued.

Sheriff’s Office spokeswoman Rebecca Gilbuena said the officer also has been released from the hospital.

The identities of the suspect and the officer have yet to be released.

According to the Sheriff’s Office:

Police responded to a loud music complaint the 9600 block of Scott Lane N. The officer encountered the man in a vehicle and determined there were numerous warrants for his arrest.

While trying to arrest the man, the driver assaulted the officer. The officer’s gun was fired, missing both.

The Police Department has requested that the Sheriff’s Office investigate the incident.