The blast came days after gunmen brazenly attacked Sri Lanka 's cricket team in eastern Pakistan and preceded planned anti-government rallies involving the main opposition party , whose leader was recently barred from elected office .