Turkey's acting military chief said on Saturday that an attempted military coup had been crushed by forces loyal to the government in clashes in which dozens were killed.