A 21-year-old Catholic police officer died after being shot in the back of the head in Londonderry.