It looks like your minions are attacking the Khepri. Can see damage numbers and you get an assist. Towers detect if you are attacking a god allied to them, which technically you are :D
Similar things happen on Bastet Cats, or even more interestingly an enemy god stepping on an Artemis trap while she is under a tower a mile away.