Complex sentence: She tells Hannay that she must leave for Scotland immediately, but while Hannay is out of the room, she is killed by two hitmen.
Split into simpler sentences: She tells Hannay that she must leave for Scotland immediately. While Hannay is out of the room, she is assassinated by two hitmen.