Complex sentence: Sam gives the briefcase to Ken, but Earl arrives with a gun shortly after; he is intent on robbing Sam, but he actually tries to rob Ken (who is holding the briefcase).
Split into simpler sentences: Sam gives the briefcase to Ken, but Earl arrives with a gun, intent on robbing Sam. He instead tries to rob Ken (who is holding the briefcase).