Operator was running a Volvo 330 Backhoe when MHST inspector arrived. he had operator stop his equipment to inspect. After inspection operator started hoe back up. Foreman was driving into the pit when he saw engine on fire. Tried to put out with 3 fire ext. called 911 & 800 for MSHA. Fire dept put out fire. Engine was totalled.