your snake has bad eye sight ( just like the rest of ours ) and probably sees a blur getting close to him. he does however see a heat signature very well so he is going after it since it caught him off guard. i bet if you take him out he will stop.