A blast in the troubled northwest Pakistan has killed at least four people and wounded ten others amid rising violence there.