Two Americans including a civilian have been killed Wednesday when a gunman opened fire near a military base in Kabul.