A suicide bomb attack on a crowded festival and market in northwest Pakistan’s northwest killed at least 25 people on Friday and wounded 20, a government official said.