Pakistan has warned of "serious consequences" after Iranian strikes against Sunni militant strongholds within its territory killed two children, according to Islamabad.