India says consulate in western Afghanistan attacked