The blasts occurred when people had gathered in the two places for prayers.
The gunman, believed to have been dressed in a Santa costume, opened fire inside the Reina nightclub in Istanbul's Ortaky district, where hundreds were celebrating the New Year.