Aside from the fact it isn’t wise to run two active AVs at the same time, it is like two dogs and one bone, they can conflict. You may have been lucky in this regard.

Kaspersky would be phoning home to updated its virus database and Avast may find that suspect.

Had you elected to select See details it may have given more information on what is/was trying to make the connection.

Recommendation, chose one resident antivirus and uninstall the other.
There is a bit of a worldwide issue regarding Kaspersky a Russian company being banned in some countries.
https://www.bbc.co.uk/news/articles/cyr7ex16p32o