The paper investigates an age-structured infinite-horizon optimal control model ofharvesting a biological resource, interpreted as fish. Time and age are considered ascontinuum variables. The main result shows that in case of selective fishing, where onlyfish of prescribed sizes is harvested, it may be advantageous in the log run to implementa periodic fishing effort, rather than constant (the latter suggested by single-fishmodels that disregard the age-heterogeneity). Thus taking into account the age-structureof the fish may qualitatively change the theoretically optimal fishing mode. This resultis obtained by developing a technique for reliable numerical verification of second ordernecessary optimality conditions for the considered problem. This technique could be usefulfor other optimal control problems of periodic age-structured systems.