BARNSTABLE — Authorities say a police officer in Massachusetts has been shot while serving a warrant.

Massachusetts State Police Spokesman Dave Procopio says a local police officer was shot Thursday afternoon in Barnstable. The officer's condition was not immediately clear.

Procopio says the suspect may still be in the residence where the officer was serving the warrant. Procopio called it an "ongoing situation."

No additional details were immediately available.