A man who identified himself as a member of the Islamic State had claimed responsibility for the shootings in a video posted online.