Three Taliban insurgents have escaped from a prison in northern Afghanistan.