A Syrian man arrested in the German capital was planning a "jihadi" attack, according to the Berlin Prosecutors' Office.