The girl was in fact not a child but an undercover police officer