Counting is underway in Pakistan's elections to the national and provincial assemblies. But polling day was marred by violence, with 10 people killed and 40 injured in a bomb attack on a party office.