Tay-Sachs disease is caused by a defect in the lysosomes, organelles responsible for breaking down and removing waste materials and harmful substances within the cell.