The officials said the gunmen fired today on the vehicle of Colonel Saleh el-Hudeiry of the coast guards, killing him on the spot. The son was wounded and later died.
Libya has been hit by a months-long wave of targeted killings against activists, judges and security agents. Yesterday, an air force pilot was shot dead in the capital Tripoli.
Most killings are presumed to be the work of armed factions, but authorities later apprehended a Russian woman whom they said had killed the pilot and written offensive graffiti in his blood. Her alleged motives were not clear.