MEXICO CITY, April 22 -- Top Mexican officials yesterday vowed to ensure safety ahead of the World Cup soccer matches following a shooting at the famed Teotihuacan pyramids that killed a Canadian tourist, and said the gunman appeared to have been influenced by violent incidents abroad.

Holding a gun and carrying a knife in his backpack, a 27-year-old man caused panic when he opened fire from atop a pyramid within the sprawling complex that is one of Mexico's top tourism draws, officials said. He then took his own life.

Mexican officials said he acted alone, firing 14 times at the victims and at National Guard military police.

Literature about acts of violence

Documents in his possession referenced the 1999 Columbine school massacre in...