A 22-year-old British man was killed in Syria as he fought with Kurdish forces to take a key city from ISIS control, a spokesman for the YPG said.