Germany has been on high alert for potential Islamist attacks since the start of the Israel-Hamas war, with the country's domestic intelligence chief warning that the threat of such attacks is “real and greater than it has been for a long time”.
The country saw a series of attacks on politicians at work or while campaigning ahead of the EU elections on 9 June.
Earlier this month, Matthias Ecke, a European Parliament member from Scholz's SPD party, was attacked by a group of young men as he was putting up election posters in the eastern city of Dresden.
A few days later, former Berlin Mayor Franziska Giffey was hit in the head and neck with a bag as she visited a library in Berlin.
President Frank-Walter Steinmeier said last week that he was concerned by the growing trend and that Germans should “never get used to violence in the battle of political ideas”.