An explosion at a mosque in the eastern Afghan province of Khost on Friday killed at least 26 people and wounded 50, officials in the area said.