Police used water cannon, stun grenades and tear gas to disperse protesters who forced their way into the national security building.