An off-duty federal police officer exchanged gunfire with a home invasion suspect in Bowie Monday afternoon, authorities said.

The incident occurred just before 3 pm in the 15000 block of Peregrine Court. Bowie police said in a report that an off-duty federal police officer exchanged gunfire with one of two people who had apparently forced their way into his neighbor's home. Police said the neighbor approached the officer saying that the suspects had forced their way into her home, and the officer encountered them on the way out.

No one was hit by the gunfire, and police have detained two "persons of interest," authorities said.

Chris Ortman, a spokesman for the Department of Homeland Security, confirmed that an off-duty Federal Protective Service inspector was involved in a shooting “after encountering an armed suspect near his residence.”

Federal Protective Service, a Department of Homeland Security agency, provides security to federal buildings nationwide.

“An investigation is ongoing and more details will be shared when they are available,” Ortman said.

On Monday afternoon the Bowie home was roped off with crime tape. A neighbor who declined to be identified said he heard three rounds of shots -- and during at least one, it sounded like two guns were firing back and forth at each other.