An Iranian official accused the United States of violating a cease-fire after Iranian forces fired at vessels that the U.S.