Hard X-ray observations of cosmic γ-ray sources