The South Australian government has ordered an investigation after a man died from cardiac arrest while waiting for an ambulance.