Cops were trying to take a man with a gun into custody when he lobbed the “Barbie bike bomb” out the window, hitting four of them.

"The atmosphere is, 'We're going to do what we want,' that 'We're going to get away with it,' " one officer told the New York Post.

Police arrested Bryan Jiminez on charges of attempted murder of a police police officer, but it wasn't easy.

As Jiminez was being taken into custody, two other men began to fight with cops, one of them was tased.

 The Post reports the patrolmen hit with the bike several injuries including a forehead gash, a concussion, and a lacerated arm. Police say the "aerial assault" isn't unusual to the area in Brooklyn where the incident took place.

More here.