When officers arrived, the gunman pointed his weapon at them, he said. After repeated attempts to persuade him to put down the gun, police shot him, Munoz said. He died a short time later at a nearby hospital.
More than 20 people were inside the care center at the time of the shooting, but no one else was wounded, Munoz said. Authorities said they would not release the names of the two men until after their families had been notified, and no other details were immediately available.
After the shooting, elderly clients were loaded into vans near a side entrance and taken away.
Edinburg is about 150 miles south of Corpus Christi.