The answer by A.Γ. is very elegant. I'll give a computational answer that takes a different path, through the first order optimality condition.
I'll write $B$ for your $H$, because H is for Hessian while here, we're talking about the inverse Hessian.
We want to solve
\begin{equation}
\min_B \frac12 \Vert W^{1/2}(B - B_k) W^{1/2} \Vert^2 \quad \text{subject to} \quad B = B^\top, \, By = s \enspace.
\end{equation}
The proof is similar to the one I used in https://math.stackexchange.com/a/4644388/167258
Introduce the Lagrangian:
\begin{equation}
\mathcal{L}(B, \lambda, \Theta) = \frac{1}{2} \Vert W^{1/2} (B - B_k) W^{1/2} \Vert^2 + \langle \lambda, By - s \rangle + \langle \Theta, B - B^\top \rangle \enspace.
\end{equation}
The gradient with respect to $B$ of the first term is $W(B - B_k)W$.
For the second one, $\langle \lambda, By \rangle$ is a scalar, equal to its trace $\mathrm{tr}\, \lambda^\top By = \mathrm{tr}\, y \lambda^\top B = \langle \lambda y^\top, B \rangle$ where this time the scalar product is over matrices.
For the last one, $\langle \Theta, B - B^\top \rangle = \langle \Theta, B \rangle - \langle \Theta, B^\top \rangle = \langle \Theta, B \rangle - \langle \Theta^\top, B \rangle = \langle \Theta - \Theta^\top, B \rangle$.
Therefore:
\begin{equation}
\nabla_H \mathcal{L} = 0 \Longleftrightarrow WBW = W B_k W + \lambda y^\top + \Theta - \Theta^\top \enspace.
\end{equation}
Next, we get rid of $\Theta$: $B$ must be symmetric hence $B^{-1}$ too; $B_k$ is symmetric by assumption and so:
\begin{equation}
\Theta - \Theta^\top = \frac12 ( y \lambda^\top - \lambda y^\top) \enspace,
\end{equation}
so
\begin{align}\label{eq:_a}
WBW &= W B_k W + \frac{1}{2} (\lambda y^\top + y \lambda^\top) \\
B &= B_k + \frac{1}{2} W^{-1}(\lambda y^\top + y \lambda^\top) W^{-1}
\enspace.
\label{eq:bfgs_b_pf}
\end{align}
To find $\lambda$, we use the other condition, $By = BWs = s$.
\begin{align}
WBWs = WBy = Ws = y = WB_k y + \frac{1}{2} (\lambda y^\top s + y \lambda^\top s)
\end{align}
Hence,
\begin{align}
\frac{y^\top s}{2} \lambda &= y - WB_k y - \lambda^\top s y \enspace,
\end{align}
so there exists $a$ such that
\begin{equation}
\lambda = -\frac{2}{y^\top s} WB_k y + a y \enspace.
\end{equation}
Since $By = s$,
\begin{align}
s &= B_k y + \frac{1}{2} W^{-1} (\lambda y^\top + y \lambda^\top) W^{-1}y \\
&= B_k y + \frac{1}{2} W^{-1} \left( \left( -\frac{2}{y^\top s} WB_k y + a y \right) y^\top + y \left( -\frac{2}{y^\top s} y^\top B_k W + a y^\top \right) \right) s \\
&= \frac{1}{2} W^{-1} \left( a y y^\top + y \left( -\frac{2}{y^\top s} y^\top B_k W + a y^\top \right) \right) s \\
&= \frac{1}{2} a s y^\top s - \frac{1}{y^\top s} sy^\top B_k W s +\frac{1}{2} a sy^\top s \\
&= a y^\top s s - \frac{1}{y^\top s} y^\top B_k W s s \\
&= a y^\top s s - \frac{1}{y^\top s} y^\top B_k y s
\end{align}
Hence
\begin{align}
a = \frac{y^\top s + y^\top B_k y}{(y^\top s)^2} \enspace.
\end{align}
So
\begin{align}
\lambda y^\top &= - \frac{2}{y^\top s} WB_k y y^\top + \frac{y^\top s + y^\top B y}{(y^\top s)^2} yy^\top \\
\frac{1}{2} \left( \lambda y^\top + y \lambda^\top \right) &= - \frac{1}{y^\top s} \left( WB_k y y^\top + y y^\top B_k W \right) + \frac{y^\top s + y^\top B y}{(y^\top s)^2} yy^\top \enspace.
\end{align}
Substituting in the equation we obtained for $B$ as a function of $\lambda$ and using $W^{-1}y = s$,
\begin{align}
B &= B_k + \frac{1}{y^\top s} W^{-1} \left( \lambda y^\top + y \lambda^\top \right) W^{-1} \\
&= B_k
- \frac{1}{y^\top s} \left( B_k y s^\top + s y^\top B_k \right)
+ \frac{y^\top s + y^\top B y}{(y^\top s)^2} s s^\top \\
&= \left(I - \frac{s y^\top}{y^\top s} \right)
B_k
\left(I - \frac{s y^\top}{s^\top y} \right)
+ \frac{s s^\top}{y^\top s} \enspace.
\end{align}