At least ten are dead after an explosion at a demonstration in Kabul apparently caused by a suicide bomber, interior ministry officials said.
Dozens are reported to be injured and there are fears the death toll may rise after the attacker struck a packed protest where people were demanding a change of the route of a power transmission line.
The Munich shooter did not have a licence to own the gun, Bavaria's police chief said.
A Glock pistol was used in the attack, he added.
The shooter was in psychiatric and medical care, the Bavaria prosecutors' office spokesman said.
He had a book in his room about "rampage shooting in the mind", Bavaria's police chief said.
No suicide note has yet been found and his parents were unable to help police with the investigation due to shock, he added.
He was not known to police before the attack and had no criminal record.
Seven of the nine victims killed in Munich attack were teenagers, the police chief said.
The shooter had 300 bullets in his backpack, he added.
Four of the 27 injured have gunshot wounds.
The gunman believed to have carried out a deadly shooting attack in Munich on Friday was German-born and had no links to so-called Islamic State militant group, police have said.
Bavaria police chief Andra Hubertus said there was no indication the attack, in which nine people were killed, before the shooter apparently turned the gun on himself was terror-related.
French border control booths have been "seriously understaffed" leading to huge queues in Dover, the port said.
A Port of Dover spokesman said in a statement: "French border control booths have been seriously understaffed overnight with only three booths available for tourists out of a potential seven.
"At one stage, only one French officer was available to check passengers on hundreds of coaches, resulting in each coach taking 40 minutes to process."
It added that it "shares the frustration" of drivers and said it had raised concerns with the government over "manning levels" and the government had raised it with the French government.
Jeremy Corbyn has said he is "shocked" after the Munich shooting that left nine dead.
The Labour leader said: "Sympathy for the families and the bereaved and the people who have suffered a terrible shock because to see somebody shot in front of you is probably an image that will never go away."