Oil rises as US, Iran resume military attacks