Legendary SAPD gang unit detective retires