Former prime minister Shinzo Abe, Japan’s longest-serving leader, died on Friday after being shot while campaigning for a parliamentary election, an official from his political party said.

A man opened fire on Abe, 67, from behind with an apparently homemade gun as he spoke at a drab traffic island in the western city of Nara, Japanese media showed earlier.

It was the first assassination of a sitting or former Japanese premier since the days of prewar militarism in the 1930s.

Speaking before Abe’s death was announced, Prime Minister Fumio Kishida condemned the shooting in the “strongest terms” while Japanese people and world leaders expressed shock at the violence in a country in which political violence is rare and guns are tightly controlled.