Taliban government officials said a man who attempted to carry out an attack inside a ministry compound was killed by guards before he could reach his target. There was an explosion due to the incident.