Linearized field equations of gauge fields from the entanglement first law