Seventeen sailors, as well as four civilians, suffered non-life-threatening injuries in the explosion in San Diego, officials said.