To create dramatic irony and increase tension, the most effective choice would be:
B. By revealing the killer's identity to readers right before the detective unknowingly enters a scene with the killer.
This option effectively builds tension, as the audience knows something crucial that the character does not. The readers’ anticipation of the moment when the detective will discover the truth adds suspense and heightens emotional engagement with the narrative. Throughout the scene, readers will be on the edge of their seats, wondering how and when the truth will come to light, thus maximizing the dramatic irony.