Prime Minister Benjamin Netanyahu has been taken to the hospital to be fitted with a pacemaker, his office said.