A factory has been destroyed by flames after a car was driven inside the premises and set alight, sparking a health alert for the nearby community.