Former U.S. President Bill Clinton says that publishing cartoons of the Prophet Muhammad was a mistake , but that violent protests by Muslims have wasted a chance to build bridges with the West .