Blasts, gunfire as militants attack Indian consulate in Afghan city