Lebanese security officials who were concerned about the massive stockpile of ammonium nitrate in Beirut’s port had sent a letter to the country’s prime minister and president two weeks before the blast, warning that the material “could destroy” the capital city if it exploded.