French police shot and injured a man who attacked an officer with a hammer outside Paris's Notre Dame cathedral, while shouting "this is for Syria".