William E. Harrell will retire after 14 years leading Hampton Roads Transit and 40 years in public service, effective this summer.