German police are investigating an arson attempt on a synagogue in Wuppertal with antisemitic motives.