A long-time member of the nationalist Alternative for Germany party has resigned his post on its regional leadership after converting to Islam.