Loose electrical wire connection near the engine could have led to the sparks initially and later resulting into a major fire: Officials