A model for the multiwavelength radiation from tidal disruption event Swift J1644+57