A Baltimore County police officer is expected to recover after being shot in Pikesville, according to department officials.