A senior security official in Peshawar told Pakistan's Geo News that the militants were armed with rockets and grenades.
Eighteen militants were reported killed when the army returned fire.
A search was under way for any militants who escaped.
Puzzle-maker slips 'Murdoch Is Evil' into Rupert Murdoch's Sunday Telegraph
N.J. man wakes up from 10-hour sleep with knife in back