Researchers were testing an experimental explosive when the bomb blew up, a spokesman for South Korea's state-run Agency for Defence Development said.