Oklahoma has executed a man who was convicted of killing his ex-girlfriend and her 7-month-old daughter nearly 20 years ago.