A 30-year-old Dothan man is behind bars accused of attempting to kill a police officer.

Dothan police responded to a disorderly conduct complaint at an apartment in the 200 block of Sweetwater Drive, according to police.

When the officer began knocking on the door and identified himself as a police officer, he heard a gunshot through the door.

After ducking for cover, the officer noticed an older female leave the apartment, which was immediately followed by a second gunshot that shattered a sliding glass door about 3 feet from the front entrance.

The suspect, Kevin Barnes, was disarmed and identified as the shooter after other Dothan police officers arrived on the scene. He was then transported to an unspecified local hospital for a psychological evaluation prior to being taken to Dothan City Jail.

Barnes is charged with attempted murder. He is being held without bond.