In s01e04 episode of Deep Space 9, A Man Alone, the victim was a clone. Somehow, they found out that the original was the killer.
But, how did he get into the locked room?
It’s actually given in plain sight at the murder scene, although we don’t realise it then.
The door was opened twice :
Sisko then adds “[the killer] might have entered the Holosuite the same time Ibudan did “
Sisko was right - original Ibudan entered with the clone, then left through the door 13 minutes later.