A factory worker who killed six people during a shooting spree in Shanghai in June 2013 was sentenced to death at a local court today.