At least 19 people were killed and 50 wounded when two explosions followed by gunfire hit Afghanistan's biggest military hospital in Kabul.