Man dies after being attacked by other inmates at SC prison, officials say