The coronavirus pandemic is likely to take about two years to run its course, the head of Germany’s public health agency said on Tuesday, adding that much depended on the speed with which a vaccine against the virus was developed.