Hubble views a spectacular supernova with interstellar material over 160,000 light-years away