Blue Bell Creameries, which distributes frozen desserts to about half of the United States, said that it was voluntarily recalling all of its products after the bacteria listeria was found in two cartons of ice cream last month.

The Centers for Disease Control and Prevention said on Monday that tests indicated Blue Bell products from plants in Texas and Oklahoma were the source of a listeria outbreak that has infected five adults in Kansas, three of whom died. Three adults in Texas were also sickened in the last four years.

“This is a complex and ongoing multistate outbreak of listeriosis occurring over an extended period,” the C.D.C. said.

Paul Kruse, Blue Bell’s chief executive and president, apologized in a video posted on the company’s website.