Turkey's prime minister says a group within Turkey's military has engaged in what appeared to be an attempted coup.