Nine police officers were attacked and cars were vandalised as hundreds of people gathered in Maidstone.