Magnetic corner states in a two-dimensional gyromagnetic photonic crystal