Turkish authorities detained 336 people after military officers staged a coup attempt overnight, Justice Minister Bekir Bozdag said on Saturday.