ANSBACH, Germany (AP) — Munich authorities say a 16-year-old Afghan friend of the Munich attacker who killed nine people in a rampage before killing himself may have known of the attack in advance.

Police said Monday the 16-year-old was arrested late Sunday and investigators were able to retrieve a deleted chat between him and the attacker on the messaging app WhatsApp.

Police say that from the chat it appears that the 16-year-old met with the attacker at the scene of the rampage — a mall in Munich — before the attack. He also knew the attacker had a pistol.

Investigators say the two teenagers met last year as in-patients at a psychiatric ward. Both were being treated for online game addiction, among other things.

(Copyright (c) 2024 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox