You're likely referring to the Penultimate Peril episode of the popular television series Doctor Who.
In this episode, the character Peri Brown is killed.
This was a significant moment in the series, as Peri had been the Doctor's companion for a considerable time and her death was a shock to many viewers.