A dead man has been found in a locked room, along with a gun that could not have been the murder weapon.