Williamsburg teacher released following sex arrest