A plane has crashed in Kazakhstan after being rerouted due to fog, the country's emergencies ministry said.