At least 39 people were killed and others injured in a shooting at a nightclub in Istanbul, Turkey.