Four men suspected of aiding the gunman who carried out a deadly attack on a synagogue in Copenhagen last year denied charges of terrorism at the start of their trial Thursday.

The charges are linked to the second of two attacks on the Danish capital in 2015 in which Omar el-Hussein killed a young Jewish man at Copenhagen's main synagogue on February 15. Two police officers were also injured.

Dan Uzan, who was guarding a Bat Mitzva party at the synagogue, was shot at close range with a handgun, prosecutor Sidsel Klixbull told the Copenhagen District Court, broadcaster TV2 reported.

El-Hussein was later shot dead by police outside his apartment in the city.

The four men on trial have denied charges of being accessories to murder and attempted murder in the attack. They are accused of giving el-Hussein ammunition for handguns, helping him get a hoodie and a bag, and paying a bill at an internet cafe where he conducted a search about the synagogue, prosecutors told the court.

Two of them also allegedly helped dispose of an automatic rifle used by el-Hussein in a shooting the day before, when a Danish filmmaker was killed at a freedom of speech event in Copenhagen.

As part of its case, the prosecution told the court how el-Hussein made computer searches about the freedom of speech event two days before the shooting.

After the first attack, el-Hussein visited an internet cafe where he made more searches. One name he looked up was Mogens Camre, a former member of the European Parliament for the populist Danish People's Party, and outspoken Islam critic.

At the opening of Thursday's trial, the court ruled to lift a ban against naming the four men: Liban Elmi, 20; Ibrahim Abbas, 23; Bhostan Hossein, 25; and Mahmoud Rabea, 31.

Evidence in the trial included security camera footage and phone records that the prosecution said linked the defendants to el-Hussein.

Rabea, 31, admitted to possessing ammunition of the same kind used in the synagogue shooting.

Security was tight at the court, TV2 said.

The suspects face life imprisonment if convicted of terrorism. The trial is expected to last 30 days, with sentencing due in September if they are found guilty.

A fifth suspect was released in January after being detained for almost a year. He was not charged with terrorism.

Latest news

Syrian opposition rules out future role for President al-Assad

The Syrian opposition said Friday it would not accept any role for President Bashar al-Assad in the future of the war-torn country, reacting to a recent US shift saying that removing al-Assad is no longer a priority for Washington.

Russian Army integrates breakaway forces of Georgian province

Parts of the small fighting forces of the Georgian breakaway province of South Ossetia have been placed under Russian military control, Russian Defence Minister Sergei Shoigu said on Friday.

Czech Republic's Pilsner Urquell beer is now Japanese

Japanese brewing company Asahi completed its takeover of the Czech brewery Pilsner Urquell on Friday, Asahi said in a statement.

Judge approves 25-million-dollar settlement of Trump University case

A US district judge on Friday approved a 25-million-dollar settlement of lawsuits and state fraud allegations against Trump University, the US president's now-defunct business venture.

Former Thai premier Thaksin to junta on reconciliation: 'Cut me out'

Former Thai prime minister Thaksin Shinawatra on Friday announced that he is not interested in the junta-led reconciliation process, three days after the junta handed him a half-a-billion-dollar tax bill for his past business deal.

Dalic: We welcome possible deal between Agrokor and banks

The government welcomes the possibility of an agreement being concluded between the Agrokor food company and creditor banks, and the bill on vitally important companies is not a fallback plan but the result of the government's care for the overall economic and financial stability of Croatia, Deputy Prime Minister and Minister of Economy Martina Dalic told a press conference in Zagreb on Friday.

Croatia, China sign action plan for cooperation in agriculture

The Croatian and Chinese ministries of agriculture on Friday signed an action plan for cooperation in the field of agriculture for the period 2017-2018, the Croatian ministry said in a statement.

ZSE indices up, Agrokor shares in focus of investor interest

The Zagreb Stock Exchange (ZSE) indices on Friday rose by more than 1.8%, with stocks of the Agrokor food and retail concern being in the focus of investor interest again.

Berlin police defend handling of Berlin market attacker

Berlin police defended themselves on Friday against accusations that they stopped surveillance on Berlin Christmas market attacker despite knowing in June 2016 he was dangerous.

Croatia, creditors tailor emergency measures to save tottering giant

Croatia's tottering retail and food giant Agrokor reached an agreement with its creditors, putting its debts standby and allowing it to continue working during emergency restructuring, the Croatian branch of Austria's Erste Bank said Friday.

Agrokor's creditors say standstill agreement to go into force today

A standstill agreement regarding the Agrokor concern's existing financial obligations to banks will take effect on Friday, additional capital will be injected into the concern in the coming days and the concern will be actively restructured, which includes a change of its management, it was said on Friday after a meeting between Agrokor's suppliers and creditor banks.

Palestinians, UN slam Israel's new settlement plan

Palestinians, Israeli activists and the UN lambasted the government of Israeli Prime Minister Benjamin Netanyahu on Friday, a day after it gave the go-ahead for the first new West Bank settlement in a quarter of a century.

South Sudan rebels release three abducted foreign oil workers

South Sudanese rebels have released three foreign engineers they abducted in early March in the oil-rich Upper Nile region, Foreign Affairs Ministry official Mawein Makol Arik said on Friday.

Turkish opposition: Imprisoned party chief has gone on hunger strike

The head of Turkey's pro-Kurdish opposition party has launched a hunger strike from prison.

European leagues threaten Champions League schedule clashes

The European Professional Football Leagues (EPFL) on Friday threatened schedule clashes on Champions League matchdays in an ongoing dispute with the governing body UEFA.

Danish court revokes citizenship of IS volunteer

A Danish appellate court on Friday stripped a man of his Danish citizenship for volunteering to fight for the extremist Islamic State in Syria.

Banks and Agrokor agree on key elements of standstill agreement

Member banks of the coordinating committee of financial creditors and representatives of the Agrokor food company have in principle agreed on key elements of a standstill agreement, which is expected to be signed later today, announcing changes in the company's management team, Erste Bank said in a statement on Friday afternoon.

Syrian man on trial in Sweden; mosque attack labelled terrorism

A Syrian man went on trial Friday in the southern Swedish city of Malmo, charged with terrorism and arson after an attack last year on a building used as an assembly hall by Shiite Muslims.