187 = Murder….not necessarily murder of a detective. Maybe the detective was involved in a murder in some other way.
Section 187 (often referenced in slang simply as 187) of the California Penal Code defines the crime of murder. The number is commonly pronounced by reading the digits separately as "one-eight-seven", or "one-eighty-seven", rather than "one hundred eighty-seven."