Saudi Arabia has confirmed that journalist Jamal Khashoggi was killed inside the Saudi consulate in Istanbul after a fight broke out.