Five militants, two security personnel killed in Pak.