An Atlanta officer was shot Wednesday afternoon at an apartment building.

The officer is stable and talking to his family, Atlanta Police Chief Rodney Bryant said in a news conference.

According to investigators, the shooting happened at the Solace on Peachtree apartments. The officers were responding to a call of a person shot inside an apartment, WSB reports.

“As soon as the elevator door opened they were met with gunfire, immediately,” Atlanta Deputy Police Chief Charles Hampton Jr. said. “Officers were able to return fire, and we believe that one suspect was fatally struck.”

“These officers were ambushed,” Atlanta Mayor Keisha Lance Bottoms said. “While so many of us run from danger, our officers run into danger. And that is what happened today.”