The Oakland County Sheriff’s Office has closed its administration building in Pontiac after the bacteria that causes Legionnaires’ disease was found there, officials announced Thursday evening.

Building 38E, which houses the agency’s administrative offices, was tested after a custodial employee who worked there was diagnosed with Legionnaires’ disease, the Sheriff’s Office said in a press release. Health experts say the disease can be deadly for people with certain risk factors.

Several water samples collected from the facility were tested and came back positive for Legionella bacteria, officials said.

Building 38E, at 1200 N. Telegraph Road, will be closed Friday and throughout the weekend, according to the release.

The building will remain closed “until it is deemed safe to reopen,” it said.

Officials said Sheriff’s Office personnel who work in Building 38E will work remotely Friday.

Legionnaires’ disease is a bacterial infection that is a type of pneumonia, according to the federal Centers for Disease Control and Prevention (CDC). It is contracted by breathing in mist containing Legionella.

The disease generally isn’t spread from person to person. The bacteria can be spread by water systems like showers, sinks and hot tubs, or through a building’s heating and ventilation systems, the CDC said.

The Sheriff’s Office said employees and anyone who recently visited the building who experiences symptoms of flu or pneumonia should seek medical care and inform their health care provider of the potential exposure.

Symptoms of Legionnaires’ disease usually develop two to 14 days after exposure, the CDC said. They can include cough, fever, headaches, muscle aches and shortness of breath.

Most healthy people exposed to the bacteria don’t get sick, the CDC said, but it can be serious for those with certain risk factors like smoking, advanced age or health conditions like cancer, lung disease or diabetes. About 1 in every 10 people who get sick with Legionnaires’ disease will die due to complications from their illnesses.