The girl had earlier informed her mother that she would take her life if she failed to clear the engineering examination, said the police