(CNN) After a night of explosions, gunfire and tanks rolling along the streets of Istanbul and Ankara, President Recep Tayyip Erdogan told Turkey Saturday that an attempted military coup was over and the government was in charge.