2 police, bystander, suspect wounded in Copenhagen shootout

A Danish police officer and a police dog are on patrol near Christiania in Copenhagen late night Wednesday, Aug. 31, 2016. Police say they have shot and critically wounded an armed Danish man following an earlier Copenhagen shootout that left two officers and a bystander wounded. (Jens Dresling/POLFOTO via AP) DENMARK OUT (The Associated Press)

Danish police officers stand on patrol near Christiania in Copenhagen late night Wednesday, Aug. 31, 2016. Police say they have shot and critically wounded an armed Danish man following an earlier Copenhagen shootout that left two officers and a bystander wounded. (Jens Dresling/POLFOTO via AP) DENMARK OUT (The Associated Press)

A Danish police officer stands by a patrol car near Christiania in Copenhagen late night Wednesday, Aug. 31, 2016. Police say they have shot and critically wounded an armed Danish man following an earlier Copenhagen shootout that left two officers and a bystander wounded. (Jens Dresling/POLFOTO via AP) DENMARK OUT (The Associated Press)

Police say they have arrested an armed Danish man following a Copenhagen shootout during which two police officers, a bystander and the gunman were wounded.

The trouble started Wednesday night in Copenhagen's easygoing Christiania neighborhood, where illegal hashish is sold openly.

Police say the assailant pulled a gun when police tried to arrest him and shot one uniformed officer in the head, seriously wounding him. A second plainclothes officer was shot in the leg and a bystander in the thigh as the attacker initially escaped.

Police say they tracked down the attacker in another part of the Danish capital and subdued the suspect with a gunshot early Thursday.

Police provided no details of the gunman's injuries or why they were trying to arrest him in the first place.