A 45-year-old Alberta teacher has killed himself just a few days after being charged with importing child pornography following a trip to Thailand.

The body of Kerry Glen Avey was found early Saturday in the parking lot of the RCMP detachment in St. Albert, near Edmonton.

Police say it appears Avey died of a self-inflicted gunshot wound to the head because a shotgun with a shortened barrel was found near the body.

Avey had been arrested late last month when he returned from Thailand.

Border Services officers found a large collection of CDs and DVDs of child pornography inside a suitcase, and Avey was charged with one count of possession of and one count of importing child pornography.

He was released from police custody and was scheduled to appear in court next week.