At least 25 people were killed and more than a dozen were wounded during an attack by the Islamic State on a military hospital in the Afghan capital of Kabul on Tuesday, according to local officials, with gunfire and explosions echoing throughout the city into the afternoon.