Dynamic transition in etching with poisoning