Two retired generals dismissed from service