ISLAMABAD, Pakistan — A small Pakistani military plane crashed into a village on the outskirts of Rawalpindi on Tuesday, killing at least 18 people, including 13 people on the ground, and injuring several others, rescue officials said.

The cause of the crash was not immediately known, and military officials said the small plane, belonging to the army aviation corps, was on a routine training flight when it crashed around 2 a.m. Two of the five people onboard were pilots.

After the plane crashed, a large fire broke out, engulfing several houses in the village of Mora Kalu near Rawalpindi, a city adjacent to the capital, Islamabad.

“Five houses were damaged and caught fire,” said Farooq Butt, an emergency services official. “The fire has been controlled.”