Three detained in officer-related shooting