Nonlinear response from optical bound states in the continuum