A BBC News correspondent has been deported from Turkey after being detained for around 17 hours, the corporation has said.