Turkish Prime Minister Binali Yildirim says a group within the military engaged in an attempted coup.