ISIS says it was behind the attack outside a contest in Texas featuring cartoons of Islam's prophet Mohammed.