A Russian teenager has detonated an explosive device at an Orthodox school near a convent outside Moscow, injuring a number of people.