A machete-wielding man who yelled "Allahu Akbar" ("God is greatest") was shot and injured as he attacked security forces at the Louvre museum in Paris on Friday, police said.