Highly unlikely that it was caused by shaving unless he was using a product with some artificial coloring, it is also possible OP had early stages of jaundice.