Deterministic exclusion process with a stochastic defect: matrix-product ground states