The messages included the sharing among the group of a photograph of one of the officers holding a sex toy at a member of the public’s home.