X says working with Pakistan to ‘understand concerns’