A man accused of murdering an agriculture officer in Andhra Pradesh took his own life along with his wife and two children.