Over a dozen militants launched an attack on the security forces' post, but the assault was successfully repelled, officials said