One of the most prominent members of Germany's Green party has been arrested in Turkey after attending a banned demo at the end of Gay Pride Week.