Baltimore police officers disarmed a man who told them he was ordered by a violent prison gang to smuggle a loaded gun into a city police station.

Police Commissioner Anthony Batts said 29-year-old Jason Armstrong walked into the Northeastern District substation about 8 a.m. Tuesday smelling strongly of marijuana. He said officers noted Armstrong's strange behavior and searched him, finding marijuana, cocaine and a .22-caliber handgun with a round in the chamber.

When officers interviewed Armstrong, Batts said, he told them he had been ordered by the Black Guerrilla Family gang to smuggle the contraband into the station house to test the department's security.

Officers said late Tuesday that Armstrong had been charged with weapons and narcotics offenses.

The FBI issued a memo last month warning of potential threats against police officers nationwide.