Islamic State militants set off an explosion at the entrance to a military hospital in the Afghan capital on Tuesday, killing at least seven people, a senior Taliban official said. It was one of the most brazen Islamic State attacks yet since the Taliban took control of Afghanistan in the summer.