Lawmaker resigns from Turkey's main opposition party