At least nine people were killed and nearly 50 injured after a high-speed train crashed into a locomotive in the Turkish capital Ankara.