I will use the following definition as my starting point:
Definition. If $X \in L^1(\Omega, \mathcal{F}, \Bbb{P})$ and $\mathcal{G} \subseteq \mathcal{F}$ is a $\sigma$-algebra, then $\Bbb{E}[X \mid \mathcal{G}]$ is a $\mathcal{G}$-measurable integrable function for which
$$ \int_{E} X \, d\Bbb{P} = \int_{E} \Bbb{E}[X \mid \mathcal{G}] \, d\Bbb{P} \qquad \forall E \in \mathcal{G} $$
is true.
If $E$ is $\sigma(B)$-measurable, then for all $F \in \sigma(B)$ we have
\begin{align*}
\int_{F} \Bbb{E}[A\mathbf{1}_E \mid B] \, d\Bbb{P}
&= \int_{F} A\mathbf{1}_E \, d\Bbb{P} \qquad & \text{(by definition with $A\mathbf{1}_E$)}\\
&= \int_{F\cap E} A \, d\Bbb{P} \\
&= \int_{F\cap E} \Bbb{E}[A \mid B] \, d\Bbb{P} & \text{(by definition with $A$)} \\
&= \int_{F} \mathbf{1}_E \Bbb{E}[A \mid B] \, d\Bbb{P}
\end{align*}
and hence $\Bbb{P}$-a.s. $\Bbb{E}[A\mathbf{1}_E \mid B] = \mathbf{1}_E \Bbb{E}[A \mid B]$ holds.
Now you may invoke the standard mechanism - the monotone class theorem - to check that the same is true for all $\sigma(B)$-measurable r.v.s $X$ for which $AX \in L^1(\Bbb{P})$.
Alternatively, approximate $B$ by a sequence of simple functions and use the observation above directly together with an appropriate convergence theorem.
(Either cases, you may need to invoke conditional version of MCT or DCT.)