Dynamics of transneptunian objects under the influence of a rogue planet