The attack comes two days before Germans vote in a national election on Sunday.