Blast near shrine in Pakistan, nine dead, 24 injured