A 38-year-old Falmouth man is facing attempted murder charges after throwing heroin at two cops who later needed to be hospitalized, police said.

Russell Pena, who was arrested on heroin and cocaine trafficking charges in Falmouth yesterday, pulled a bag of heroin from his pants while he was being booked at the police station and “tore the bag apart and dispersed the drugs in the air purposely toward and onto the police officers,” cops said.

Pena and the two officers were taken to Falmouth Hospital to be treated for narcotics exposure.

All three were treated and released.

Pena is now facing two counts of attempted murder and two counts of assault and battery with a dangerous weapon.