Danish police have confirmed the name of the gunman who opened fire at a free-speech seminar and a synagogue in Copenhagen and revealed details of the weapons used in the deadly attacks.

Police spokesman Joergen Skov says 22-year-old Omar Abdel Hamid El-Hussein killed a Danish filmmaker outside the seminar Saturday with a single shot with a M95 assault rifle. He then sprayed the entrance with 27 bullets, wounding three police officers inside.

Later, Skov says, El-Hussein fired nine rounds with two handguns outside the synagogue where a security guard was killed. Two police officers were wounded.

Skov says El-Hussein carried the two handguns when he was shot by police early Sunday.