Iran says it may send forces into Pakistan to free five border guards who have been kidnapped by militants if Islamabad did not take measures to secure their release.