5 militants killed in encounter