Armed police and a dog unit were deployed to the streets of a Derbyshire town as two wanted men were arrested.