Let A be the infinitesimal generator of a strongly continuous contraction semigroup in a Hilbert space H. We give an upper estimate for the best approximation of the operator A by bounded linear operators with a prescribed norm in the space H on the class Q2={x∈D(A2):∥A2x∥≤1}, where D(A2) denotes the domain of A2.This work was supported by the Russian Foundation for Basic Research (project no. 15-01-02705), the Program for State Support of Leading Scientific Schools of the Russian Federation (project no.NSh-9356.2016.1), and by the Russian Academic Excellence Project (agreement no. 02.A03.21.0006 of August 27, 2013, between the Ministry of Education and Science of the Russian Federation and the Ural Federal University)