Number one rule: if you're still confused: do the Lorentz transform.
Rule No 2: is pick good coordinates. Start in $S$, at rest with Alice. Introduce a moving ($\beta$) Bob in $S'$.
Make sure their origins overlap, or else you can do LTs. We have Alice's world-line as $(t, 0)_S$ and Bob's is $(t', 0)_{S'}$.
Now $t=t'=0$ occur when Alice and Bob are at the same event. This is when Alice sees the bombs explode at:
$$ E_{\pm} = (0, \pm \frac L{2\gamma})_S $$
Note we cheated a bit, because we knew length contraction was a thing.
This means she fires her light-trigger at:
$$E_0 = (-\frac L{2\gamma}, 0)_S $$
So for her: she hits the button, two equidistant bombs get the signal simultaneously--done. There just happens to be a train passing by such that the bombs explode at the front and the back, exactly.
Now we LT from $S\rightarrow S'$, and figure out Bob's 3+1.
Note: we do, a priori, not need to thing about Alice moving, nor the bombs moving. We are just looking at events (this is why I prefer lightning strikes--as they have no time duration. That the bombs exist in a frame, it makes our Galilean sensibilities think that the frame is special--it's not. Events don't move, they just exists at single time and point).
Anyway, for Bob:
$$t'_0 = \gamma\big(-\frac L{2\gamma} - 0\big) = -\frac L{2\gamma}$$
$$x'_0 = \gamma\big(0-\beta\frac{-L}{2\gamma}\big)=\beta \frac L{2\gamma}$$
So:
$$ E_0 = \Big(
-\frac L{2\gamma}, \beta \frac L{2\gamma}
\Big)_{S'}$$
Meanwhile, the explosions transform to:
$$ E_{\pm} = \Big(\mp \frac{\beta L} 2, \pm \frac L 2 \Big )_{S'} $$
So the forward explosions occurs 1st, at the front of the train, and then later, the caboose blows up.
You can verify that in all frames:
$$(E_{\pm}-E_0)^2 = 0 $$
(they are light-like) and that:
$$(E_+-E_-)^2 = -\big(\frac L{\gamma} \big)^2$$
Final Comment: note that in the OP, you introduced fiber optics, and then complained that the speeds were different. One answer pointed out that this was superfluous--and it is: UNLESS $v \lt c$.
You should redo this problem where the propagation speed of the Alice's signal is sub-light: $v = c/n$. With that, Alice triggers earlier, so that:
$$E_0 = (-\frac {nL}{2\gamma}, 0)_S $$
while $E_{\pm}$ are unchanged. In $S'$, Bob should see the two signals propagating at different speeds:
$$ v_{\pm} = \frac{\beta \mp \frac 1 n}{1 \mp \frac \beta n}$$