Nashville mayor Megan Barry on Wednesday admitted to having an extramarital affair with the former head of her security detail.