A Navy medic shot and critically wounded two people at a Maryland business park Tuesday, then fled to a nearby military base where he was shot and killed, police and U.S. Navy officials said.