There has been no claim of responsibility for the attack but Danish legations have been under threat since some Danish newspaper earlier this year republished a cartoon depicting the prophet Mohammed , which offended some Muslims .