High-energy emission from jet-cloud interactions in AGNs