Officials said the man was trying to repair heavy machinery.