Operation frees prisoners, targets Taliban