A truck carrying migrants has crashed in Turkey's western province of Izmir killing at least 22 and injuring others.