Police arrested and charged Chey Jordan with attempted murder in the Tuesday night shooting.
Frederick H. Bealefeld III said a motive for the attack was unclear.
In charging documents, Detective Brian Kershaw wrote that police were contacted by a witness who had been with Jordan the night of the shooting and saw a rifle in the back seat of his vehicle. The witness went into an apartment in the 1100 block of Cooks Lane and heard several gunshots, then saw Jordan disassembling his rifle.
"At that time, Chey Jordan stated, 'Is it bad that I don't feel anything?'" Kershaw wrote in charging documents.
Jordan was ordered held without bond at a bail review Friday morning.
The wounded officer, identified in court records as five-year veteran Andrew Zdura, had been responding to a 911 call for domestic violence. The bullet struck the handle of Zdura's service weapon at his hip, and fragments hit his stomach just below his body armor. He was treated at Shock Trauma for graze wounds and released.
The shooter used fully jacketed ammunition, which could have pierced the armor, Bealefeld said.
According to charging documents, the witness told police that Jordan had talked about a desire to "shoot someone" for the past three months.
Zdura and Jordan did not know each other and were not believed to have had any previous encounters, Bealefeld said Thursday.
Jordan does not appear to have a criminal record in Maryland. His address in court papers is listed as the 10900 block of Huntcliff Drive in Owings Mills. Documents show his 2007 Mitsubishi had Kansas license plates.
Police say Jordan confessed to the shooting in an interview with Kershaw and Detective Steven Matchett, during which he said that he fired four rounds at Zdura while positioned on the north side of the 1100 block of Cooks Lane.
Detectives obtained a search warrant for the apartment where the witness said Jordan disassembled the rifle, and found a rifle barrel hidden in the bathroom ceiling and the stock in an air-conditioning duct. A shoebox contained a training manual for becoming a security guard, records show.