German authorities have arrested an 18-year-old man suspected of planning an attack on the Israeli Embassy in Berlin.