Taliban militants have released 10 paramilitary soldiers that they had abducted from their local headquarters in restive northwest Pakistan.