6 killed, 38 injured in blast in northwest Pak