Atlantic City has agreed to a $3 million settlement in an excessive-force suit by a man who was beaten by five police officers and mauled by a police dog in an incident captured on video.

David Castellani filed a lawsuit against the city and the officers in federal court over his 2013 assault outside the Tropicana Casino. The video of his attack was broadcast on CNN. On Aug. 23 the city agreed to the settlement terms, which also require that the police department demonstrate that its K9s meet the training and certification guidelines of the state Attorney General's Office.

The settlement was reached after U.S. District Judge Jerome Simandle of the District of New Jersey denied summary judgment to the city and the five officer defendants on July 21. The officer defendants decided to exercise their Fifth Amendment rights at trial, said Jennifer Bonjean, the Brooklyn lawyer who represented Castellani.