An investigation has been launched after two patients in South Australia died on Monday while waiting for ambulances to arrive.