Turkish police catch the alleged gunman who shot dead 39 people on New Year's night at an Istanbul nightclub.