What kind of virus infection in a pregnant woman can cause the baby to die inside the womb?

Several. If you are asking for the names of viruses, there are many, including herpes simplex, cytomegalovirus, measles, and a host of others. If you have a different question please phrase it differently.