Three militants, policeman killed in encounters in J-K