Four injured in blast at chemical factory