More than 12,000 affected by quake in Balochistan: official