The United Arab Emirates accused Iran of firing two ballistic missiles at shipping in the Gulf on Tuesday, marking the first time in months the defense ministry warned of a missile threat to its territory. Iran denied the claim.