An explosion at a lithium battery factory near the South Korean capital resulted in the death of at least 22 people.