The Baltimore Police Department officers were drawn to the apartments by reports of gunfire. Police said the man was shooting before they arrived about 9:30 p.m., then turned his rifle on the officers.
Once shot, the gunman ran to a second floor landing in the apartments, where he was found. He had stashed the rifle, police said, in the woods behind the apartments.
Into Friday morning, police were investigating whether the tactic was an attempt to lure police. The officers weren't injured, and no other victims were found.
"Why he was firing initially? Who he was firing at? That's something we don't have the answer to," said T.J. Smith, a police spokesman.
Now it's being reported that the Baltimore field office of the FBI distributed a memo warning that members of the Black Guerrilla Family gang had discussed the possibility of ambushing officers in the wake of a recent attack in Dallas.