German president, Merkel mourn victims of Munich shooting

FILE - In this July 23, 2016 file picture police stand at a the crime scene in Munich, Germany, where a shooting took place in front of a fast food restaurant leaving nine people dead the day before. A memorial service for the nine victims of the shooting will be held Sunday July 31, 2016 in Munich. German chancellor Angela Merkel and German President Joachim Gauck are expected to attend. (AP Photo/Sebastian Widmann,file) (The Associated Press)

FILE - In this July 23, 2016 file picture candles are lit near a mall in Munich, Germany where a shooting took place leaving nine people dead the day before. A memorial service for the nine victims of the shooting will be held Sunday July 31, 2016 in Munich. German chancellor Angela Merkel and German President Joachim Gauck are expected to attend. (AP Photo/Sebastian Widmann,file) (The Associated Press)

From left : German President Joachim Gauck, his partner Daniela Schadt and German chancellor Angela Merkel attend a memorial service for the nine victims of a shooting at the Olympia shopping center in Munich, Germany, Sunday, July 31, 2016. An 18-year-old German-Iranian man killed nine people and wounded over 30 others on July 22, at a McDonald's restaurant and shopping mall in the city. He then killed himself. ( (AP Photo/Matthias Schrader) (The Associated Press)

Munich is paying tribute to the victims of the July 22 shooting in which nine people were killed with a church service attended by German Chancellor Angela Merkel and President Joachim Gauck.

The nondenominational service at the Frauenkirche, or Church of Our Lady, was the first of two memorial events on Sunday. Gauck was speaking later at an event in Bavaria's state parliament.

An 18-year-old German-Iranian man killed nine people and wounded over 30 others at a McDonald's restaurant and shopping mall in the city. He then killed himself.

Officials have said the gunman was a withdrawn loner obsessed with playing "killer" video games who had been treated for depression and psychiatric problems.

The rampage came between two other attacks in Germany claimed by the Islamic State group.