At least 40 killed by bombing in Pakistan