Are there any ancient tombs or temples that had working booby traps?
No, there is no definitive evidence to suggest that any tombs or temples were booby trapped in their construction to stop grave robbers or thieves. It is true that some Egyptian pyramids had false chambers built in them to fool robbers, but these were not usually deadly and were constructed merely to trick robbers rather than harm them.
The only tomb or temple which comes close to being booby trapped is that of the first Chinese Emperor, Qin Shi Huangdi. His tomb, most famous for its terracotta army, has an inner chamber that has remained sealed since its construction due to the extremely high levels of mercury within the chamber.
It must be remembered, however, that at the time of its construction mercury was not believed to be poisonous and instead was seen as a magical and life giving element. In all, there are no temples or tombs that are known today to have elaborate traps within them, but it is likely that some may be found in the future.