At least six militants have been killed during an attack on a Pakistani air force base in Peshawar, officials say.