Authorities in Germany have confirmed the country's first case of African swine fever, a virus that affects pigs and wild boar.