Twelve people dead after blast in north-west Pakistan