Iran says will block militants from entering Iraq