The suspect was detained in Esenyurt district of the Istanbul province, Hurriyet reports.
His four-year-old son is reported to have been with him.
According to the newspaper, the attacker's name is Abdulgadir Masharipov and he is a citizen of Uzbekistan.
It also reported that, together with Masharipov, another four people were detained, among them - three females and one male of Kyrgyz origin.
#BREAKING Turkish police detain 5, including the attacker, 3 women, 1 man of Kyrgyz origin pic.twitter.com/kf1yOjIGGY
— CNN Türk ENG (@CNNTURK_ENG) January 16, 2017
As UNIAN reported earlier, 39 people were killed in the attack on Reina nightclub in Istanbul when a lone shooter opened fire, eventually killing 39 people, 16 of them - foreigners. Another 69 people were wounded.
The UN Security Council condemned the terrorist attack.