German politician attacked in library as violence spreads