I don't think the kid intended to kill the guy either, it seems like he was attacked and responded by defending himself. So he accidently killed a criminal that broke into the kids home and then when confronted and given the option to leave, chose to attack the kid wielding the katana. Seems pretty straight forward to me... and awesome.