Sheriff: California student used knife and guns to kill six