A 22-year-old man who attacked a youth with a blade after being questioned over a vulgar social media comment about the victim's mother has been arrested in Kerala.