Four men accused of assisting a gunman who killed two people in attacks against a free-speech seminar and a synagogue last year have appeared before a court in Copenhagen.

The men, who cannot be named under a court order, have been charged with abetting terrorism for allegedly helping Omar El-Hussein carry out the attacks in February 2015. They pleaded innocent as the trial began Thursday amid tight security.

El-Hussein, a 22-year-old Dane of Palestinian origin, was killed in a shootout with police.

Prosecutors say the defendants encouraged him to commit the attack, and gave him munitions, a hooded sweater and a bag.

Two of them also are charged with disposing of the automatic M-95 rifle used during the first attack.