Peterborough man threatening police officers