Lawmaker from Turkey's main opposition party resigns