Police officer recovering after accidental overdose