Taliban attack helps inmates escape Afghan prison