Answer
In the 2007 thriller Mr. Brooks, William Hurt plays Marshal, a former FBI agent who is now a private investigator. He is hired by the eponymous Mr. Brooks (Kevin Costner) to investigate the murders that Brooks is committing. Marshal is initially unaware of Brooks' true nature, but eventually comes to realize that he is a serial killer.