A similar case of pilot being locked-out, but without lethal consequences, happened on flight ET 702 on 17/02/2014.
When the pilot exited the cockpit to use the restroom, the co-pilot locked the cockpit door and continued to fly the aircraft.[5] The flight was scheduled to arrive at Leonardo da Vinci–Fiumicino Airport in Rome, Italy, at 04:40 CET (UTC+1), before continuing to Malpensa Airport in Milan, Italy.[4] Instead, the aircraft was flown to Geneva, Switzerland, where the copilot of flight 702 circled several times while communicating with air traffic control at Geneva International Airport while trying to broker political asylum for himself and an assurance that he would not be extradited to Ethiopia.
http://en.wikipedia.org/wiki/Ethiopi...nes_Flight_702