The highly public exchange is an indication that their earlier close ties have frayed since Trump’s decision to go to war with Iran.