A French soldier guarding the Louvre in Paris has shot a man who tried to attack a security patrol with a machete shouting "Allahu Akbar", police say.

Visitors inside the museum were told to sit on the ground in a locked room as the area was put on lockdown.