An Anne Arundel County police officer was charged Friday with misconduct in office, obstructing and hindering a police officer and conspiring to distribute drugs in connection with an incident in which drug suspects allegedly were warned about an impending a search, authorities said.

The matter first came to investigators’ attention about 10 p.m. Thursday, when Anne Arundel County police officers went to search a home in the 1300 block of Juniper Street in Shady Side as part of a drug case, authorities said. They found small amounts of drugs during the search, but received information from five suspects they detained, authorities said. The suspects told investigators they had moved marijuana out of the home before police arrived, thanks in part to a warning , authorities said.

Detectives soon turned their investigation to Cpl. Rick Alexander, who apparently knew the suspects and was working in the southern part of the county when police searched the Shady Side home, authorities said. They pulled phone records and they also found 82.9 grams of marijuana — or about $829 worth — at the location where the suspects said they had moved it, authorities said.

Alexander, 36, appeared in front of a district court commissioner Friday and was released on his own recognizance, authorities said. His police powers have been suspended, though he is still allowed to work in a desk duty, said Lt. Michael Brothers, who commands the Community Relations Division for the Anne Arundel County Police Department.