South Korean president orders 'thorough' inquiry into explosion at military unit