The Bt toxin in genetically engineered Bt cotton kills the pest by: