Quantum critical dynamics of a magnetic impurity in a semiconducting host