A 9-year-old whose father is a New York City police officer shot himself in the head yesterday in the family 's Massapequa home while he was playing with a .38 - caliber gun , the Nassau County police said .