LAHORE, Pakistan — A firecracker thrown by a celebrant at a wedding set fire to a bus filled with guests on Sunday, killing at least 40 people in eastern Pakistan, police said.