Officials said the officer was in stable, but critical condition at Shock Trauma.

“He’s been with the department a very long time," Deputy Commissioner Jerry Rodriguez said. "I have to tell you this: This has hurt us tremendously. This is a much beloved member of the force who many of us up here knew and worked with and it has affected us very deeply. The police department has been shaken when it’s this close to home.”

Rodriguez stressed that officers believe there was not an immediate danger to the community. The shooting occurred in the 1900 block of Belair Road.

“What I want the community to know is that the rest of the community is also safe. We have maximum deployment out there tonight and we’re reallocating our resources to make sure that no part of this city goes unsupervised by police presence.”

The officer was sent to Shock Trauma for treatment. Officials said he remained in surgery as of 10:50 p.m.

Stay with ABC2 News for details

CLARIFICATION | ABC2 News received earlier reports from police that the officer who was shot may have been undercover. It is now being reported that the officer may have been off-duty.

Copyright 2014 Scripps Media, Inc. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.