A hotel detective is accused of committing a murder which took place while he was investigating a robbery.