The One who attacked Maria said something about having to do it because of her family, and 2 students attacking people with knifes at the same day sounds like a planned thing, so odds are someone forced those 2 to do it.
My guess is that the main evil guy knew about his friend not trusting him and armed both hits, he send the girl to kill Maria, and this guy to "try" to kill him and hit his friend instead