Well, that's kinda up to interpretation. Some say that Chara and Frisk did it together, some say Chara possessed Frisk and made them do it, others say the Frisk turned Chara into the abomination we see at the end. Personally, I'm the middle one, though the latter also makes sense. One way or another, it's up to how you interpret it.