An 18-year-old man beheaded a middle school teacher with a kitchen knife. The attacker, who was fatally shot, may have been motivated by controversial cartoons.