Egyptian teacher who killed child receives prison term