At least 20 people have been killed in an explosion on Friday at a mosque in the Hangu district of northwest Khyber Pakhtunkhwa province in Pakistan, local media reported, citing police.