Maximum principle for optimal control problem of stochastic delay differential equations driven by fractional Brownian motions