Bags of heroin with the stamp "Bud Light" are shown in this file photo. A man dropped nine bags of a substance believed to be heroin at a Manhattan courthouse before attacking a court officer who tried to arrest him.Courtesy Ocean County Prosecutor's Office

A Brooklyn man was arrested Wednesday afternoon after he dropped nine bags of a substance believed to be heroin at a Manhattan courthouse and then attacked the officer who tried to arrest him.

Police told the New York Daily News Carlos Tineo, 24, spilled the glassine envelopes marked "White Tiger" as he emptied his coat pocket after he set off a metal detector. Tineo then assaulted a court officer in the lobby of the Manhattan Criminal Court on Centre Street, police said.

Tineo was charged with felony assault, assaulting an officer, obstruction of governmental administration and possession of a controlled substance.

He was at the building for a scheduled appearance relating to a July 9 arrest. Tineo was charged with driving with a suspended license and admitted to smoking marijuana in the vehicle, authorities said.