A beheading video was on YouTube for hours, raising questions about why it wasn’t taken down sooner