Sporadic gunfire as police mop up after attack