An 18-year-old man has been sentenced to administrative detention after accusing a police officer of sexually harassing a 14-year-old girl..