To be fair the airlines possibly share a slight proportion of the blame. They could have made sure that the pilots received proper training (or at least a fraction of it). There might be a reason why both incidents happened in third world countries...