The US restrictions on maritime navigation and transit in international waters are illegal, Iranian military says.