Officials in the San Diego suburb of National City say the officer was in uniform and walking to his vehicle when he was struck.