They should only be held accountable if the firearm dealer knew about past incidents of the person they sold the weapon to
If it was a complete valid purchase, they shouldn't be held accountable but if they knew the person they sold the gun to had a previous record or was sold the weapon illegally, they are at partial fault