A car bomb targeting security forces on Tuesday in the eastern Libyan city of Benghazi killed 22 people and wounded 20, a spokesman for the forces and medical officials said.