U.S. stocks declined for a second consecutive day, led lower by the Nasdaq composite as oil prices rose following a fresh tanker attack.