Chara took control of frisk at that moment, used OVERWRITE on Cross, and tried to get themselves killed. therefore, Frisk tried to kill you, not Cross