After a security guard at a Baltimore grocery store became enraged over the amount of his paycheck, he exchanged gunfire with two police officers and fled the scene, the city’s police commissioner said Saturday.