The latest selloff came as Israel and Iran continued to attack each other’s territories for a third day.