Swedish cartoonist Lars Vilks, whose drawing of Muhammad offended Muslims, was attacked while delivering a lecture.