Complex sentence: Shields, who was in Schwebes' class, knocked on his door, and when Schwebes answered, Foster shot him twice with a shotgun, killing him.
Split into simpler sentences: Shields, who was in Schwebes' class, knocked on his door. When Schwebes answered, Foster shot him twice with a shotgun, killing him.