A suicide bomber on foot targeted a wedding party in Afghanistan’s eastern province of Nangarhar on Friday, killing at least five people and injuring 40, local officials said.