I don’t believe this question is directly addressed in the catechism…which doesn’t mean it’s not addressed, only that I don’t exactly know where. That said, we do have guidelines we can apply.
We are allowed to kill in self defense (2264): “it is legitimate to insist on respect for one’s own right to life. Someone who defends his life is not guilty of murder even if he is forced to deal his aggressor a lethal blow”: This passage only refers to an “aggressor”, it says nothing about whether the aggression is intentional or accidental.
We also have 2265: Legitimate defense can be not only a right but a grave duty for someone responsible for another’s life. Preserving the common good requires rendering the unjust aggressor unable to inflict harm. While this one seems more directed to police and the military I think the principle is what makes us responsible for the life of an who falls into a pool at our feet. We have a moral obligation to pull him out despite not being officially responsible for his life.
So: can we shoot the virus carrier given that: he is completely unaware of his condition - there is no malicious intent involved, and this is the only way to stop him before he massively, and fatally, infects others?
2265 refers to an “unjust aggressor”, which doesn’t really apply to our clueless carrier, but it seems to me the catechism cannot give a detailed explanation of what is valid in all circumstances; we really have to look elsewhere for that.
Regarding self defense, Aquinas said:
Accordingly the act of self-defense may have two effects, one is the saving of one’s life, the other is the slaying of the aggressor. Therefore this act, since one’s intention is to save one’s own life, is not unlawful (ST II-II 64, 7)
That seems to me would allow the killing of someone who threatened you regardless of his motivation. The intention of my act is to preserve my own life, not to take his, therefore my act is justified. Now, does this apply when lives other than my own are at stake? Probably, but I don’t have time to pursue that line at the moment.