Three dead after US factory shooting