Man charged in disappearance of 8-month-old girl takes plea deal