Two people were seriously injured when welding work ignited a shaker tank unexpectedly containing fuel.