Military adviser resigns in protest after Trump’s St. John’s photo-op