One person has been detained in connection with the shooting of a popular German politician.