MANILA, Philippines - A Canadian man facing charges of illegal possession of firearms opened fire in a Philippine courtroom Tuesday, killing two people and wounding a prosecutor before police fatally shot him, officials said.

The suspect, John H. Pope, appeared in court in central Cebu city, where he resided, to face the charges when he pulled out a gun and shot a lawyer and a physician who filed a case against him, police said. He then fired at a prosecutor in the hallway of the building before responding police fatally wounded him, said Cebu police chief Mariano Natuel.

Regional police director Marcelo Garbo said Pope ignored orders to surrender and tried to fire at police.

Police said they were investigating Pope's background.

Local media mentioned Pope in 2011, when he was held by police on charges of illegal possession of firearms. The same physician who was killed in Tuesday's shooting accused Pope, his neighbour, of brandishing a weapon and threatening him and other residents in their condominium.

Pope was quoted as saying at the time that the pistol he was carrying was for self-defence. Apart from illegal weapons possession, he was also charged with malicious mischief and grave threats.

The shooting came after several recent killings in the country that prompted calls for a tighter gun control.

john pope shooting
Scene of the Crime Operatives (SOCO) of the Philippine National Police examine the scene where prosecutor Maria Teresa Casino was wounded by Canadian national John H. Pope at the Regional Trial Court building in Cebu city in central Philippines Tuesday, Jan. 22, 2013. Pope, a Canadian man facing charges of illegal possession of firearms, opened fire in the Philippine courtroom Tuesday, killing two people and wounding the prosecutor before police fatally shot him. (AP Photo/Chester Baldicantos)

Also on HuffPost:

Loading Slideshow...
  • Vilcabamba, Ecuador: From $600 A Month

    Fill your lungs with fresh, clean air and bask in the warm sunshine of Vilcabamba, Ecuador. Vilcabamba is also known to have plenty of affordable organic food, according to <a href="" target="_hplink">International Living</a>. Here, it's easy to stretch a dollar: The site <a href="" target="_hplink">interviewed one ex-pat couple who live on $600 a month</a>. Monthly bills include $1.25 for gas for cooking and hot water; $1.70 for water and $30 for electricity. Gasoline in Ecuador costs less than $1.50 a gallon. Most home rentals are less than $400 a month. A healthy, stress-free lifestyle goes hand-in-hand with longevity: Many Vilcabamba residents live to be 100 years old, the site reports.

  • Santa Fe, Panama: From $800 A Month

    Just 200 miles west of Panama City, lies Santa Fe, Panama, known for its rugged terrain, lush rainforest and hiking trails. <a href="" target="_hplink">International Living interviewed an ex-pat</a> who called the health care "excellent," and was able to take care of a dental problem that would have cost $1,000 in the States for just $180.

  • Penang, Malaysia: From $1,200 A Month

    Penang, Malaysia is a town that offers a rich historic architecture, lively street culture and sandy beaches, according to <a href="" target="_hplink">International Living</a>. Aside from the scenery and recently opened performing arts center, Penang offers affordable healthcare: An annual check-up goes for just $12.

  • Granada, Nicaragua: From $700 A Month

    If you're looking to retire in the cobblestone streets of Granada, Nicaragua, you can expect to find some 1,000 expatriates there with you. Granada is thriving with residents engaged in cultural events, outdoor activities and volunteering, according to <a href="" target="_hplink">International Living</a>. As one ex-pat told the site: "I can get up in the morning, take a yoga class, get a manicure and pedicure, have a massage, meet my friends for happy hour, and do it all for less than $30!"

  • Campeche, Mexico: From $1,400 A month

    On the Gulf of Mexico, 100 miles south of Mérida on Mexico's Yucatán Peninsula is Campeche, Mexico. A boardwalk stretches for three miles along the gulf, with paths for runners and cyclers. Living expenses for Campeche are relatively low: A week's worth of fruits and vegetables at the market will set you back less than $10, according to <a href="" target="_hplink">International Living</a>. Although the town is beginning to build itself up a bit, with upcoming shopping malls and a wider highway, most residents can get by living in Campeche's historic neighborhoods without a car.