LYNN-A 26-year-old Lynn man was arrested Wednesday night after he allegedly fought with an officer who was trying to arrest him at a Western Avenue home for possession of a variety of narcotics.Carl Anderson Jr. of 72 Elm St. was arrested and charged with possession of a class B drug (cocaine) with intent to distribute, possession of a class A drug (heroin) with intent to distribute, possession of a class D drug (marijuana), assault and battery on a police officer and resisting arrest.After the arrest was made, Officer Timothy Magner was transported to Union Hospital with hand, back and knee injuries, police said.Magner and his partner, Officer Edward Tansey, arrived at 655 Western Ave. shortly before 10 p.m. Wednesday after a resident reported that he was in fear of his neighbor who had been knocking on his door. The man had taken out an emergency restraining order against the neighbor a few hours earlier for a prior assault.When police arrived and tried to speak with the man, the officers saw two people exit a different apartment and begin walking away very quickly when they noticed the officers’ presence, police said.Tansey walked to the apartment door that the people had just walked out of and it was still open, according to police.Meanwhile, Magner went outside of the building to try to question the man and woman who had just walked away.The people were not connected to the other residents that police had come to question.A man, later identified as Anderson, approached the officer at the apartment door, police said. Tansey reportedly noticed “an overpowering odor of burnt marijuana coming from inside the apartment,” a police report said.Anderson, wearing a black Sean John jacket, black Red Sox hat and Timberland work boots told Tansey that he was at the apartment visiting his cousin, police said.Tansey then observed a large plastic bag containing about one ounce of a green leafy substance, suspected of being marijuana, sitting on a table in the apartment, according to police. Anderson said it wasn’t his.Tansey then searched Anderson’s pockets and found eight individually wrapped bags of a white rock substance believed to be cocaine and another bag of a brown substance believed to be heroin, police said.As the officer inspected the bag, Anderson allegedly used both hands to shove Tansey in the chest and try to run away.Tansey tried to tackle Anderson and managed to grab onto his leg as Anderson dragged the officer through the hallway, continually yelling that the drugs were not his, police said.Magner was reentering the building after having no luck locating the two suspects when he noticed Tansey and Anderson in a physical struggle.Anderson was finally taken into custody with Magner’s help.Police later found $1,056 in cash on Anderson’s person and police say that money was made from drug transactions.