Afghan police say five people were killed and two were wounded when gunmen opened fire on a car in an attack in one of the country's eastern provinces.

Friday's attack took place in Nangahar province as seven civilians were travelling through Khogyani district early in the morning.

The provincial police spokesman, Hazrat Hussain Mashraqiwal, says the attack was carried out by "insurgents," a term that usually refers to the Taliban, and that police are investigating.

Nangahar province borders Pakistan, where the Taliban leadership has safe havens in the North Waziristan tribal region. Khogyani is nestled in the mountains that line the border and has long been a hotbed of insurgent activity.