Third attack by migrant in 3 months takes place on eve of security conference and ahead of German elections