Stanley's killer shot Stanley through a hole in the door.
Stanley's killer opened the door without a key (with a lokpick for example) and then shot Stanley through the doorway.
Stanley's killer removed the door, shot Stanley through the doorway, and then put the door back.