Former substitute teacher charged with sex offense against minor