A Pentagon police officer who tried to stop a car robbery has been charged with two counts of second-degree murder in relation to the deaths of two people in Maryland earlier this week, police said.