The alliance says the Afghan and coalition forces encountered hostile fire Sunday at a compound outside Kandahar City .