A former detective based at Thorpe Wood Police Station in Peterborough has been ruled to have committed gross misconduct – after admitting to an incident involving a prison.