An 11-year-old boy who suffered a gunshot wound to the face has died in hospital, as police investigate how the incident inside a unit took place.