What happened with you is perfectly normal. There is nothing to worry about!
Avoid penetrative intercourse if and till it is painful. Let the wounds heal completely and it may take couple of days. Maintain cleanliness/hygiene.
Always engage into prolonged, mutually satisfying foreplay before penetration and also use good amount of lubricant such as KY jelly next time to minimize possible trauma/injury.