The main suspect in the new year’s eve attack on nightclub in Istanbul has been arrested in the Turkish city.

Abdulkadir Masharipov is believed to have mounted the assault on the Reina club which left 39 people dead.

Citizens of France, Tunisia, Lebanon, India, Belgium, Jordan and Saudi Arabia were among the victims, and dozens of people were injured.

He was captured alive in an apartment in Esenyurt district of Istanbul with his four-year-old son in an operation jointly carried out by the Turkish police and the intelligence agency MIT. Four other people, including a man of Kyrgyz origin and three women, were detained along with Masharipov.

Turkish Foreign Minister Mevlut Cavusoglu posted a twitter message thanking the interior minister, Suleyman Soylu, police and intelligence organizations “who caught the Reina attacker in the name of the people.”