A wild boar which was stuck in the grating of a school gate here died while attempting to free itself.

According to Pahang Department of Civil Defence (JPAM) director Zainal Yusoff, the animal wandered to Sekolah Kebangsaan (SK) Beserah from a nearby jungle.

He said the department received a call from the school around 6.30am and the incident was also reported to the Department of Wildlife Protection and National Parks.

The wild boar was apparently stuck for two hours and struggled to free itself before dying.

Its carcass was removed at around 10am.