The annual inflation rate shot higher in April as the war in Iran drove up energy and food prices, according to data released Tuesday by the Labor Department.